wireshark.git
2 months agoBuild: 3.6.4v3.6.4wireshark-3.6.4
Gerald Combs [Wed, 4 May 2022 16:14:22 +0000 (4 09:14 -0700)]
Build: 3.6.4

[skip ci]

2 months agoPrep for 3.6.4.
Gerald Combs [Mon, 2 May 2022 22:20:14 +0000 (2 15:20 -0700)]
Prep for 3.6.4.

2 months ago[Automatic update for 2022-05-01]
Gerald Combs [Sun, 1 May 2022 16:39:18 +0000 (1 16:39 +0000)]
[Automatic update for 2022-05-01]

Update manuf, services enterprise numbers, translations, and other items.

2 months agodoc: Update minimum version of Qt for 3.6 branch
John Thacker [Fri, 29 Apr 2022 10:38:01 +0000 (29 06:38 -0400)]
doc: Update minimum version of Qt for 3.6 branch

2 months agoDocs: Accurately describe our minimum GLib and where to get it
Jim Young [Sun, 6 Feb 2022 10:17:25 +0000 (6 10:17 +0000)]
Docs: Accurately describe our minimum GLib and where to get it

(cherry picked from commit 42106c9688a41f2bb8a1ff4171a1e67525e5eb29)

2 months agodocs: Remove references to configure
John Thacker [Thu, 28 Apr 2022 11:46:56 +0000 (28 07:46 -0400)]
docs: Remove references to configure

Remove some leftover references to configure in the INSTALL file
and README.* files in root directory.

(cherry picked from commit 1e0f5799527a4772d1d0b62ae395de23c0a88c15)

2 months agoNAS-5GS: correction of Configuration update command, IE 5GS registration result
Joakim Karlsson [Tue, 26 Apr 2022 11:06:53 +0000 (26 13:06 +0200)]
NAS-5GS: correction of Configuration update command, IE 5GS registration result

(cherry picked from commit 74fd19fb10da923f675ca1c1bbfa9aa1f83843b9)

2 months ago802.11: fix TWT Setup dissection
Alexis La Goutte [Sun, 24 Apr 2022 09:20:01 +0000 (24 11:20 +0200)]
802.11: fix TWT Setup dissection

Duplicate Dialog Token field

Fix #18050

(cherry picked from commit 19dc602fe324169c011ca4df6959b395a90ac3ad)

2 months agorpm: Specfile cleanup
John Thacker [Sun, 24 Apr 2022 16:20:33 +0000 (24 12:20 -0400)]
rpm: Specfile cleanup

Fix some deprecated and obsolete syntax from the rpm specfile that
modern distributions complain about:
Don't specify the BuildRoot
Don't have a %clean section
Don't remove the BuildRoot at the start of %install
Don't repeat Name in summary
Version the Obsoletes
Have a %build section
Escape macros in changelog
Remove comment about user setting _smp_mflags since rpm does that
automatically better now
Be consistent about spaces and tabs (tabs are used)

(cherry picked from commit 858a670d3414cf408f94f26d49f11ca579407cd2)

2 months agorpm: Fix SUSE 15.1 builddir issue on make
John Thacker [Sun, 24 Apr 2022 20:43:17 +0000 (24 16:43 -0400)]
rpm: Fix SUSE 15.1 builddir issue on make

SUSE 15.1 moved to out of source builds, and sets a builddir
appropriately, but it makes some decisions about automatically
entering the build dir when building or installing that are
handled by the distribution's various Make and Ninja macros
differently than other distributions and later SUSE releases.
Work around it, so that both ninja and make builds work on
SUSE 15.1 (both OpenSUSE and SLES)

Related to #17910

(cherry picked from commit 7ec3e841baab95aad8b383e3da066e562a9c49ed)

2 months agorpm: RHEL 8 update macros
John Thacker [Mon, 17 Jan 2022 14:55:13 +0000 (17 09:55 -0500)]
rpm: RHEL 8 update macros

RHEL 8 and derivatives have supported the various CMake macros since
8.4 (June 2021, see https://access.redhat.com/errata/RHEA-2021:1747)
Use them there as well, so that we have a unified spec file for all
recent distributions (with the older RHEL/CentOS 7 and SLES 12 being
the only exceptions.)

(cherry picked from commit 92c8c2f7a09c68489f5c2272f8f6bb9ab0b0aed9)

2 months agoTools: Handle table rows and admonition titles in html2text.
Gerald Combs [Sun, 24 Apr 2022 17:25:36 +0000 (24 10:25 -0700)]
Tools: Handle table rows and admonition titles in html2text.

(cherry picked from commit 968f40d373128d9cb34a5b711e6444f59d485786)

2 months agoCorrects repeated words throughout the code.
Moshe Kaplan [Mon, 20 Dec 2021 02:40:23 +0000 (19 21:40 -0500)]
Corrects repeated words throughout the code.

Repeated words were found with:
egrep "(\b[a-zA-Z]+) +\1\b" . -Ir
and then manually reviewed.
Non-displayed strings (e.g., in comments)
were also corrected, to ease future review.

(Partial cherry-pick of 69d54d6f8e668b6018375121ea2afb99f3dd0177)

2 months agoTools: Quote some elements in html2text.
Gerald Combs [Fri, 8 Oct 2021 22:29:42 +0000 (8 15:29 -0700)]
Tools: Quote some elements in html2text.

Quote <code> spans with backticks and <span class=menuseq> spans with
double quotes.

(cherry picked from commit 51e1381b235b3fad563f5ec7467ea4e001f2605b)

Conflicts:
NEWS

2 months agorpm: expand comment
John Thacker [Mon, 17 Jan 2022 13:01:46 +0000 (17 08:01 -0500)]
rpm: expand comment

Be a bit more precise about what's wrong with bindir on SUSE
(when prefix is /usr/local or anything else.)

(cherry picked from commit 65e3c4fbe2634d15354d25b0e5b1aa5e880e6950)

2 months agorpm: Fix up paths
John Thacker [Mon, 17 Jan 2022 05:35:50 +0000 (17 00:35 -0500)]
rpm: Fix up paths

Fedora and SUSE 15 use out of source builds by default, but store
the build directory in differently named macros. Define one macro
for the build directory that has the appropriate value (which will
be "." for any distribution that doesn't have either macro, and
thus presumably does in-source builds.) This fixes building and
installing the guides with any of the supported distributions.

Also, since RHEL/CentOS 7 doesn't have a special CMake macro, it
needs to set the install prefix when calling cmake.

Also, fix a comment warning by escaping the percent sign.

(cherry picked from commit 1d0fb38d387ba3705088396994485d7cb9779e14)

2 months agorpm packaging: Add build requirements for the guides
John Thacker [Sun, 16 Jan 2022 06:54:26 +0000 (16 01:54 -0500)]
rpm packaging: Add build requirements for the guides

The HTML guides require xsltproc and the docbook xsl stylesheets
in order to be generated.

(cherry picked from commit 800524131f869984eca1c8940d4825e68f23cfdd)

2 months agopackaging: Bump RPM glib2 version to 2.38
John Thacker [Wed, 5 Jan 2022 15:21:23 +0000 (5 10:21 -0500)]
packaging: Bump RPM glib2 version to 2.38

We require glib2 version 2.38 now, increase the version requirement
in the RPM spec file to match.

(cherry picked from commit 4b5d54f5ea60cb72e03cce64836c8f08862721d4)

2 months agopackaging: Remove unnecessary Requires
John Thacker [Wed, 5 Jan 2022 05:19:44 +0000 (5 00:19 -0500)]
packaging: Remove unnecessary Requires

Automatic dependency generation has been around since RPM 4.0 (September
2000). The BuildRequires are sufficient for all of these; the automatic
dependences for the .so files works and are superior as they are versioned.

Red Hat and SUSE both recommend using automatic dependencies and
avoiding unnecessary Requires in spec files:
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_explicit_requires
https://en.opensuse.org/openSUSE:Package_dependencies

(based on commit 2cb8f347212a26df7531d2c202fc4489facf4591 with slight
differences since 3.6 does not require pcre2)

2 months agoFix Linux build issue
Paul Koning [Wed, 26 Jan 2022 21:24:03 +0000 (26 16:24 -0500)]
Fix Linux build issue

This fixes an error due to memcpy not being declared.  Closes #17911.

(cherry picked from commit 6231bdc716412037366028cc8ca27fb5aa2bea7c)

2 months agopackaging: Let SUSE build with /usr prefix
John Thacker [Fri, 7 Jan 2022 05:28:55 +0000 (7 00:28 -0500)]
packaging: Let SUSE build with /usr prefix

There's a couple places where /usr/local is hardcoded in the
spec file that need to be replaced with %{_prefix} in order for
RPMs to build correctly on OpenSUSE with prefixes other than
/usr/local

(cherry picked from commit 7027242c27b5846d8b7d78f156ae6772d24ec21e)

2 months ago[Automatic update for 2022-04-24]
Gerald Combs [Sun, 24 Apr 2022 16:45:51 +0000 (24 16:45 +0000)]
[Automatic update for 2022-04-24]

Update manuf, services enterprise numbers, translations, and other items.

2 months agomacOS: Require Sparkle 2.
Gerald Combs [Thu, 21 Apr 2022 17:11:08 +0000 (21 10:11 -0700)]
macOS: Require Sparkle 2.

Remove our Sparkle 1 code. Fixes #18035.

(cherry picked from commit 4bb16383a3f514cff9cc7cac650a1d0c441466de)

Conflicts:
CMakeLists.txt

2 months agoepan: Add a null conversation checks.
Gerald Combs [Tue, 19 Apr 2022 17:13:42 +0000 (19 10:13 -0700)]
epan: Add a null conversation checks.

Check for null conversations in conversation_add_proto_data,
conversation_get_proto_data, and conversation_delete_proto_data.
Document them as well. Ping #18043.

(cherry picked from commit 88f07ff5d131c6973d09d87d4e3950338b03e89c)

2 months agomacOS: Even more Sparkle 2 signing fixes.
Gerald Combs [Wed, 20 Apr 2022 21:16:03 +0000 (20 14:16 -0700)]
macOS: Even more Sparkle 2 signing fixes.

Sparkle's XPC services are only needed if we're sandboxing, so remove
them.

[skip ci]

(cherry picked from commit c2fd505516c3284ba483ac1b8fc820751a09127e)

2 months agomacOS: More Sparkle 2 signing fixes.
Gerald Combs [Wed, 20 Apr 2022 19:40:05 +0000 (20 12:40 -0700)]
macOS: More Sparkle 2 signing fixes.

Sign our XPCs. Add another Brotli fixup.

(cherry picked from commit d024502c8bc00336bddacd300199750a5d6e8aab)

2 months agomacOS: Update our app bundle for Sparkle 2.
Gerald Combs [Wed, 20 Apr 2022 17:28:08 +0000 (20 10:28 -0700)]
macOS: Update our app bundle for Sparkle 2.

Update our application bundle script to handle Sparkle 2 and its assets.

(cherry picked from commit 486fd46fe992f2d504b4bd62d4bf705286ff0504)

3 months agoCMake+packaging: Updates for Visual Studio 2022
Gerald Combs [Sun, 16 Jan 2022 02:24:55 +0000 (15 18:24 -0800)]
CMake+packaging: Updates for Visual Studio 2022

Update the NSIS and WiX CMakeLists for Visual Studio 2022.

(cherry picked from commit 816f858361b57e671c8fd6113890009037135e3f)

3 months agoRelease notes: Add a note about 32-bit Windows.
Gerald Combs [Tue, 19 Apr 2022 18:32:30 +0000 (19 11:32 -0700)]
Release notes: Add a note about 32-bit Windows.

3 months agoGitLab CI: Migrate to Visual Studio 2022.
Gerald Combs [Sun, 16 Jan 2022 00:00:51 +0000 (15 16:00 -0800)]
GitLab CI: Migrate to Visual Studio 2022.

Migrate the Windows builds to Visual Studio 2022.

(cherry picked from commit 5f19c5b6efb2a74a7738131c99e2c54e6cc3cbe0)

Conflicts:
.gitlab-ci.yml

3 months agomacOS: Add support for Sparkle 2.
Gerald Combs [Sat, 9 Apr 2022 21:14:04 +0000 (9 14:14 -0700)]
macOS: Add support for Sparkle 2.

Sparkle 2 deprecated the sharedUpdater singleton, so create our own
which uses Sparkle 2's updated API. Ping #18035.

Update our CMake version check.

(cherry picked from commit fea6591b0c84660f46c06029e664e2a9af18fe87)

Conflicts:
CMakeLists.txt

3 months agoGitLab CI: Switch to clang 14.
Gerald Combs [Sun, 17 Apr 2022 18:07:45 +0000 (17 11:07 -0700)]
GitLab CI: Switch to clang 14.

(cherry picked from commit bc29ce61d5ff01002b0bb368a0a1a650ec5c69c8)

3 months agoTools: Set a variable in rpm-setup.sh.
Gerald Combs [Sun, 17 Apr 2022 17:37:10 +0000 (17 10:37 -0700)]
Tools: Set a variable in rpm-setup.sh.

[skip ci]

(cherry picked from commit 05c86efcf62317df4ebeace3bcd2d1ae2a242678)

3 months ago[Automatic update for 2022-04-17]
Gerald Combs [Sun, 17 Apr 2022 16:38:50 +0000 (17 16:38 +0000)]
[Automatic update for 2022-04-17]

Update manuf, services enterprise numbers, translations, and other items.

3 months agoCQL: format timestamp as microseconds (ENC_TIME_USECS)
Chuck Craft [Thu, 14 Apr 2022 16:34:02 +0000 (14 11:34 -0500)]
CQL: format timestamp as microseconds (ENC_TIME_USECS)

Closes #18038

(cherry picked from commit 98793186b900b16240498a471d12075b608326bb)

3 months agoepan: add ENC_TIME_USECS timestamp encoding
Chuck Craft [Wed, 13 Apr 2022 01:51:36 +0000 (12 20:51 -0500)]
epan: add ENC_TIME_USECS timestamp encoding

Needed to format timestamp in #18038 - packet-cql.c
Mirrors changes made in !1924 - Add ENC_TIME_NSECS timestamp encoding
Documentation in README.dissector, proto.c, proto.h - could use
refresh in a different merge request.

(cherry picked from commit 4e0cd3dbd24e572b6219965dc2508b615a9d447d)

3 months agoRevert "Update documentation for ENC_TIME_* constants"
Guy Harris [Thu, 14 Apr 2022 21:08:21 +0000 (14 14:08 -0700)]
Revert "Update documentation for ENC_TIME_* constants"

This reverts commit 1be58cc3236813ff8b996ad64f1b13ae4976965c.

That was already in the 3.6 branch.

3 months agoUpdate documentation for ENC_TIME_* constants
Nicolás Alvarez [Wed, 3 Feb 2021 20:40:16 +0000 (3 17:40 -0300)]
Update documentation for ENC_TIME_* constants

ENC_TIME_MIP6 and ENC_TIME_CLASSIC_MAC_OS_SECS were added recently by
factoring them out of specific dissectors, but they weren't documented.
I added documentation, based on comments in the dissector code they came
from.

(cherry picked from commit 0e86ea6c57c56b26f4a526884fef035e150b4c0f)

3 months agoieee80211: Correct the dissection of the 802.11ax Capabilities device class.
Richard Sharpe [Thu, 7 Apr 2022 01:31:50 +0000 (6 18:31 -0700)]
ieee80211: Correct the dissection of the 802.11ax Capabilities device class.

The numbers were reversed.

Closes #18030

(cherry picked from commit 34f8420d1e20b49c8fd0db28b14427cbd2eab273)

3 months agoTools: Make the Debian and RPM setup scripts more strict.
Gerald Combs [Sun, 10 Apr 2022 22:40:36 +0000 (10 15:40 -0700)]
Tools: Make the Debian and RPM setup scripts more strict.

We use debian-setup.sh and rpm-setup.sh to build the containers in
https://gitlab.com/wireshark/wireshark-containers/. Make sure they fail
with a nonzero exit status, otherwise we might end up with an invalid
container image.

Make sure OPTIONS is defined in all of the setup scripts that use it.

(cherry picked from commit bd6ee4479f17db1b75a8ebb200104082dfc2d01f)

Conflicts:
tools/arch-setup.sh
tools/msys2-setup.sh

3 months agomacOS: Require Sparkle 1 for now.
Gerald Combs [Wed, 12 Jan 2022 20:00:42 +0000 (12 12:00 -0800)]
macOS: Require Sparkle 1 for now.

The Sparkle project recently released Sparkle 2.0.0, which deprecates
the version 1 API. Add version discovery to FindSparkle.cmake and
require version 1 until we add support for the new API. Ping #17861.

(cherry picked from commit a6e24a623416ca08fc8c3bb339b4f275a6aa9c3d)

Conflicts:
CMakeLists.txt

3 months ago[Automatic update for 2022-04-10]
Gerald Combs [Sun, 10 Apr 2022 16:40:51 +0000 (10 16:40 +0000)]
[Automatic update for 2022-04-10]

Update manuf, services enterprise numbers, translations, and other items.

3 months agoicmpv6: Fix dissection of PREF64 option for shorter prefixes
Thomas Jansen [Wed, 6 Apr 2022 14:54:00 +0000 (6 16:54 +0200)]
icmpv6: Fix dissection of PREF64 option for shorter prefixes

RFC 8781 shows in section 4 that the prefix field of the PREF64 option
header is always 96 bits (or 12 bytes), regardless of the prefix length
code that only specifies which parts of the prefix are significant. The
option itself thus always has a fixed length. Even if they are not used
in the significant part of the prefix itself, the unused bits are still
part of the prefix field of the PREF64 option and the offset must be
adapted accordingly.

The previous implementation would fail to correctly parse any PREF64
option with a PLC other than 0 (i.e. the full 96 bits) due to the unused
remaining bits in the option not being consumed.

Closes #18033.

(cherry picked from commit aac695d62ed62b8618201c95551006c90bcc253c)

3 months agoDHCPv6: Fix interpretation of user class data length fields
Jaap Keuter [Wed, 6 Apr 2022 17:18:36 +0000 (6 19:18 +0200)]
DHCPv6: Fix interpretation of user class data length fields

Closes #18032

(cherry picked from commit 8d646c16574fd0fd9a8bb7a4b451e9c60944a6ec)

3 months ago[Automatic update for 2022-04-03]
Gerald Combs [Sun, 3 Apr 2022 16:41:05 +0000 (3 16:41 +0000)]
[Automatic update for 2022-04-03]

Update manuf, services enterprise numbers, translations, and other items.

3 months agoFix interface statistics update if some interfaces are hidden
Jiří Engelthaler [Fri, 1 Apr 2022 20:45:46 +0000 (1 22:45 +0200)]
Fix interface statistics update if some interfaces are hidden

Closing #18023

(cherry picked from commit 798a18644dc8ef6d6fa749eb306354c203fab8c1)

3 months agordp: Register RDP as a TLS subdissector for port 3389 directly
John Thacker [Fri, 1 Apr 2022 22:24:18 +0000 (1 18:24 -0400)]
rdp: Register RDP as a TLS subdissector for port 3389 directly

ssl_dissector_add registers TLS as the dissector for TCP for the given
port. We can't use it, since on port 3389 TPKT (for RDP) can be over TLS
or directly over TCP, depending on the RDP security settings.
Fix #17952.

(cherry picked from commit 6dfd96f6feda59853f1b6b8b5cfe12a26e8664af)

3 months agouds: Don't append parameter record if not available
Fabian Viöl [Mon, 28 Mar 2022 07:13:57 +0000 (28 09:13 +0200)]
uds: Don't append parameter record if not available

(cherry picked from commit b55e012524b81d09fb23c5a6ffb1271408b8402c)

3 months ago[Automatic update for 2022-03-27]
Gerald Combs [Sun, 27 Mar 2022 16:40:01 +0000 (27 16:40 +0000)]
[Automatic update for 2022-03-27]

Update manuf, services enterprise numbers, translations, and other items.

3 months agonetflow: handle zero length varlen fields
Jaap Keuter [Sat, 26 Mar 2022 14:24:37 +0000 (26 15:24 +0100)]
netflow: handle zero length varlen fields

Closes #18010

(cherry picked from commit 118e45d853636f4c5709319574ed408b69c81d78)

3 months agoVersion: 3.6.3 → 3.6.4.v3.6.4rc0
Gerald Combs [Wed, 23 Mar 2022 18:14:55 +0000 (23 11:14 -0700)]
Version: 3.6.3 → 3.6.4.

[skip ci]

3 months agoBuild 3.6.3.v3.6.3wireshark-3.6.3
Gerald Combs [Wed, 23 Mar 2022 16:58:59 +0000 (23 09:58 -0700)]
Build 3.6.3.

[skip ci]

3 months agoPrep for 3.6.3.
Gerald Combs [Mon, 21 Mar 2022 21:01:49 +0000 (21 14:01 -0700)]
Prep for 3.6.3.

4 months ago[Automatic update for 2022-03-20]
Gerald Combs [Sun, 20 Mar 2022 16:40:11 +0000 (20 16:40 +0000)]
[Automatic update for 2022-03-20]

Update manuf, services enterprise numbers, translations, and other items.

4 months agohttp: Pass data relative to the original offset to follow tap
John Thacker [Fri, 18 Mar 2022 12:28:29 +0000 (18 08:28 -0400)]
http: Pass data relative to the original offset to follow tap

dissect_http_message might get called with a nonzero offset into
the tvb if there are multiple messages/segments in a frame. Only
send data starting from that offset to the follow tap, instead of
starting at tvb offset 0. Fix #18006

(cherry picked from commit 37a0054551fafffcac5435c3f683b45176388cd4)

4 months agotest: Use integer tuple to check Gcrypt version
Stig Bjørlykke [Thu, 17 Mar 2022 07:17:30 +0000 (17 08:17 +0100)]
test: Use integer tuple to check Gcrypt version

Converting Gcrypt version to float before checking against 1.6 does
not work when Gcrypt version is 1.10 and above.

(cherry picked from commit eabf92859ea3d221e05551845b9610ef63cc035f)

4 months agopackaging: Add RPM build dependencies for ninja, asciidoctor
John Thacker [Fri, 7 Jan 2022 03:17:26 +0000 (6 22:17 -0500)]
packaging: Add RPM build dependencies for ninja, asciidoctor

If we're building with ninja, we need to require it.

While CentOS/RHEL/Rocky 8 doesn't have a asciidoctor package
(so we install it separately), we can add a BuildRequires on
the file that RubyGems creates for other rpm based distributions.

(cherry picked from commit 736441ccfaa58eb43a4d19d5b07a9e6e24163ee0)

4 months agowiretap: add a dump-close API that provides a "needs to be reloaded" indication.
Guy Harris [Mon, 14 Mar 2022 19:11:24 +0000 (14 12:11 -0700)]
wiretap: add a dump-close API that provides a "needs to be reloaded" indication.

This allows the "needs to be reloaded" indication to be set in the close
process, as is the case for ERF; having a routine that returns the value
of that indication is not useful if it gets seet in the close process,
as the handle for the wtap_dumper is no longer valid after
wtap_dump_close() finishes.

Fixes #17989.

(backported from commit 109b92b5d796f2fb64491fe1976257bc976f1f40)

4 months agoGitLab CI: Always create ABI check artifacts.
Gerald Combs [Tue, 15 Mar 2022 01:49:47 +0000 (14 18:49 -0700)]
GitLab CI: Always create ABI check artifacts.

4 months ago[Automatic update for 2022-03-13]
Gerald Combs [Sun, 13 Mar 2022 16:39:07 +0000 (13 16:39 +0000)]
[Automatic update for 2022-03-13]

Update manuf, services enterprise numbers, translations, and other items.

4 months agoQt: Set Packet List scrollbar page step only on macOS
Stig Bjørlykke [Thu, 10 Mar 2022 14:08:14 +0000 (10 15:08 +0100)]
Qt: Set Packet List scrollbar page step only on macOS

Only set the Packet List scrollbar page step to be equal to the
height of the scrollbar when running on macOS. Qt on Linux and
Windows behaves different.

(cherry picked from commit 2c4165fe5acd011b63b0fed2b483e0bd7cab476f)

4 months agoUSB HID: Initialize some variables.
Gerald Combs [Mon, 7 Mar 2022 22:01:38 +0000 (7 14:01 -0800)]
USB HID: Initialize some variables.

Fixes #17984.

(cherry picked from commit 5fc1ed369c84c598727402b1200362d86a7e7585)

4 months ago[Automatic update for 2022-03-06]
Gerald Combs [Sun, 6 Mar 2022 16:39:18 +0000 (6 16:39 +0000)]
[Automatic update for 2022-03-06]

Update manuf, services enterprise numbers, translations, and other items.

4 months agocolumn-utils: Add missing check for frame_data::has_ts
Oke Hargens [Fri, 7 Jan 2022 14:37:45 +0000 (7 15:37 +0100)]
column-utils: Add missing check for frame_data::has_ts

Adds check for frame_data::has_ts in col_set_delta_time before calling
set_time_seconds. This is the same check that is done in multiple other
methods in column-utils.c. Because frame_data::tsprec might not be
initialized if has_ts is false, this resulted in a failed assertion in
set_time_seconds if the user created a column with "Delta time".

Also adds an assertion for frame_data::has_ts in set_time_seconds.

(cherry picked from commit f461e33a41c0af201188b5130b7d0ec2b131dd60)

4 months agopacketlogger: Handle SCO data packets
Stig Bjørlykke [Mon, 28 Feb 2022 09:02:30 +0000 (28 10:02 +0100)]
packetlogger: Handle SCO data packets

Add handling of sent and received SCO data packets.

Fixes #17964.

(cherry picked from commit 71cb58df22f03472cfd0dbdfcd68547287d37a43)

4 months ago[Automatic update for 2022-02-27]
Gerald Combs [Sun, 27 Feb 2022 16:39:43 +0000 (27 16:39 +0000)]
[Automatic update for 2022-02-27]

Update manuf, services enterprise numbers, translations, and other items.

4 months agoPackaging: Update our macOS notarization check.
Gerald Combs [Wed, 23 Feb 2022 02:32:28 +0000 (22 18:32 -0800)]
Packaging: Update our macOS notarization check.

It looks like altool changed its "info" argument from --eval-info to
--notarization-info at some point.

(cherry picked from commit 0e427ac837b20f37774514b270674eeb29fccd68)

4 months agoGitLab CI: Try to fix macOS Arm builds.
Gerald Combs [Tue, 22 Feb 2022 23:52:33 +0000 (22 15:52 -0800)]
GitLab CI: Try to fix macOS Arm builds.

Don't specify CMAKE_OSX_SYSROOT, for now at least.

4 months agoGitLab CI: Remove `arch` commands.
Gerald Combs [Tue, 22 Feb 2022 22:10:30 +0000 (22 14:10 -0800)]
GitLab CI: Remove `arch` commands.

GitLab Runner 14.8 added a native Arm binary for macOS. It's been
installed on our build machine, so the `arch` calls in the "macOS Arm
Package" job are no longer needed.

(cherry picked from commit 91f588ea6f16dce697390ca5fee23abb7bab83a8)

4 months agoCSN.1: Fix compiler warning showing wrong copy
Pau Espin Pedrol [Mon, 21 Feb 2022 12:54:58 +0000 (21 13:54 +0100)]
CSN.1: Fix compiler warning showing wrong copy

Let's do what's done for u8, which looks far more sane.

Fixes following gcc 11.2.0 warning:
"""
epan/dissectors/packet-csn1.c:913:17: warning: ‘ui16’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  913 |                 memcpy(pui16, &ui16, 2);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
"""

(cherry picked from commit a059280b5df42e1e2ef4a9ab776fe4eabbd7127d)

4 months agoNTLMSSP: fix dissecting the spnego mechListMIC payload
Stefan Metzmacher [Wed, 23 Feb 2022 19:47:56 +0000 (23 20:47 +0100)]
NTLMSSP: fix dissecting the spnego mechListMIC payload

dissect_ntlmssp() is also called from dissect_spnego_T_mechListMIC(),
we should detect a 16 byte structure starting with 0x01
and use dissect_ntlmssp_verf().

All other messages in dissect_ntlmssp() start with the
magic string "NTLMSSP", so they never match the 0x01.

It fixes another problem seen in the example captures
of https://gitlab.com/wireshark/wireshark/-/issues/17958

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit af6d86d4a73f322b6963c1ad1e468b229da8592c)

4 months agoNTLMSSP: fix AUTHENTICATE_MESSAGE without NTLMSSP_NEGOTIATE_VERSION
Stefan Metzmacher [Wed, 23 Feb 2022 19:45:12 +0000 (23 20:45 +0100)]
NTLMSSP: fix AUTHENTICATE_MESSAGE without NTLMSSP_NEGOTIATE_VERSION

If we have data remaining before the start of the variable data,
we should assume the space for the version field even without
the NTLMSSP_NEGOTIATE_VERSION flag. In that case we should
mark the 8 bytes as zero bytes.

This fixes https://gitlab.com/wireshark/wireshark/-/issues/17958

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit b9fcfd4f10727d780635d3f6092b1d06a1a2e2a5)

4 months agopcap/pcapng: byte-swap the CAN ID field in CAN pseudo-headers for SLL2.
Guy Harris [Sun, 20 Feb 2022 18:38:55 +0000 (20 10:38 -0800)]
pcap/pcapng: byte-swap the CAN ID field in CAN pseudo-headers for SLL2.

As for LINUX_SLL, so for LINUX_SLL2.

(cherry picked from commit c7f84156c0761e851d5cf222044bafc8d84261cd)

4 months ago[Automatic update for 2022-02-20]
Gerald Combs [Sun, 20 Feb 2022 16:40:42 +0000 (20 16:40 +0000)]
[Automatic update for 2022-02-20]

Update manuf, services enterprise numbers, translations, and other items.

4 months agoQT Proto Tree: Fix link to wiki for protocol ref
Uli Heilmeier [Wed, 16 Feb 2022 12:25:26 +0000 (16 13:25 +0100)]
QT Proto Tree: Fix link to wiki for protocol ref

The wiki pages for protocols are currently reachable via
https://gitlab.com/wireshark/wireshark/-/wikis/<proto_abbrev>

Fixes #17944

(cherry picked from commit 0824558af1796331879fed6e12d51719e14c9d73)

5 months agoPFCP: Fix offset for hf_pfcp_flow_desc
Uli Heilmeier [Fri, 18 Feb 2022 08:37:56 +0000 (18 09:37 +0100)]
PFCP: Fix offset for hf_pfcp_flow_desc

Fixes: #17951

5 months agoTLS: Ignore GREASE values for JA3
Uli Heilmeier [Tue, 15 Feb 2022 21:18:41 +0000 (15 22:18 +0100)]
TLS: Ignore GREASE values for JA3

According to https://engineering.salesforce.com/tls-fingerprinting-with-ja3-and-ja3s-247362855967
JA3 ignores GREASE values completely.

Fixes #17942

(cherry picked from commit 2f7a18f181596bf733768fca85d265b45796e1bc)

5 months agomake-manuf.py: Remove HTML double quote entities
Jim Young [Mon, 14 Feb 2022 23:12:56 +0000 (14 23:12 +0000)]
make-manuf.py: Remove HTML double quote entities

(cherry picked from commit 371f98aec4e9e0617551f78d759b4d64f5a1d44d)

5 months agoieee80211: initialize local buffers.
Dario Lombardo [Wed, 19 Jan 2022 15:22:01 +0000 (19 16:22 +0100)]
ieee80211: initialize local buffers.

Fix valgrind errors for jumps on non-initialized memory.

Fix: #17894.
(cherry picked from commit ac164db3ac993dfd2e896c734a6919b6054cb20e)

5 months ago[Automatic update for 2022-02-13]
Gerald Combs [Sun, 13 Feb 2022 16:41:24 +0000 (13 16:41 +0000)]
[Automatic update for 2022-02-13]

Update manuf, services enterprise numbers, translations, and other items.

5 months agoGitLab CI: Swap the Ubuntu package and latest Clang builds.
Gerald Combs [Fri, 7 Jan 2022 02:25:40 +0000 (6 18:25 -0800)]
GitLab CI: Swap the Ubuntu package and latest Clang builds.

The Ubuntu APT Package job takes a long time to run. Do so after merging
and add a package test job, similar to the other Linux package builds.
The Latest Clang job has been detecting errors that also affect macOS.
Run it for merge requests. Fix Ubuntu build caching.

(cherry picked from commit 947d80c477b601f0c8808ff80867aa0b3c9ebedd)

Conflicts:
.gitlab-ci.yml

5 months agoCMake+GitLab CI: Add ABI checks.
Gerald Combs [Sun, 30 Jan 2022 19:24:06 +0000 (30 19:24 +0000)]
CMake+GitLab CI: Add ABI checks.

Add {wiretap,epan,wsutil}-abi-dump targets that run abi-dumper on
each of our main libraries. Add dumps from Wireshark 3.6.0 and 3.6.1.
Add an "ABI Check" job that runs abi-compliance-checker on a baseline
dump and a current one.

5 months agoVersion: 3.6.2 → 3.6.3v3.6.3rc0
Gerald Combs [Thu, 10 Feb 2022 20:12:40 +0000 (10 12:12 -0800)]
Version: 3.6.2 → 3.6.3

[skip ci]

5 months agoBuild: 3.6.2v3.6.2wireshark-3.6.2
Gerald Combs [Thu, 10 Feb 2022 18:30:17 +0000 (10 10:30 -0800)]
Build: 3.6.2

[skip ci]

5 months agoGitLab CI: Disable the Documentation job for now.
Gerald Combs [Wed, 9 Feb 2022 19:06:05 +0000 (9 11:06 -0800)]
GitLab CI: Disable the Documentation job for now.

Disable the Documentation job until we can git versioned docs in place,
otherwise we'll unexpectedly clobber the master docs.

5 months agoPrep for 3.6.2.
Gerald Combs [Wed, 9 Feb 2022 00:54:34 +0000 (8 16:54 -0800)]
Prep for 3.6.2.

5 months agofile: Fix memory leak in Find Packet
John Thacker [Wed, 9 Feb 2022 01:01:51 +0000 (8 20:01 -0500)]
file: Fix memory leak in Find Packet

If we don't find the data in a packet, reset the wtap record so
that the block we just searched is freed before we lose our pointer
to it.

(cherry picked from commit 26dafbae392150195dafb2fe868cc55d919c3686)

5 months agoepan: Fix our FT_UINT_BYTES and FT_UINT_STRING checks.
Gerald Combs [Mon, 7 Feb 2022 02:42:28 +0000 (6 18:42 -0800)]
epan: Fix our FT_UINT_BYTES and FT_UINT_STRING checks.

FT_UINT_BYTES and FT_UINT_STRING lengths are always at least the width
of the count bytes. Fix for 1136ce9610 / #17891.

(cherry picked from commit a8c8ee69081d3a85125645b9b3efd376c9ef947c)

5 months agoBP: Make sure our offset advances.
Gerald Combs [Mon, 7 Feb 2022 19:09:42 +0000 (7 11:09 -0800)]
BP: Make sure our offset advances.

Fixes #17933.

(cherry picked from commit e93001a8dd4daff66b0778a3e72b200ea3346c93)

5 months agoGDSDB: Make sure our offset advances.
Gerald Combs [Mon, 7 Feb 2022 18:19:52 +0000 (7 10:19 -0800)]
GDSDB: Make sure our offset advances.

Fixes #17931.

(cherry picked from commit 8d3c2177793e900cfc7cfaac776a2807e4ea289f)

5 months agop_mul: Change display of missing sequence numbers
Stig Bjørlykke [Mon, 7 Feb 2022 07:50:07 +0000 (7 08:50 +0100)]
p_mul: Change display of missing sequence numbers

Show missing sequence numbers with from and to instead of listing
every number in the range as generated fields.

Bonus: explicitly show the range delimiter.

Fixes: #17932
(cherry picked from commit 3c4e4cc1348c7c0cff5f77e6e3ddc8ea09f4e415)

5 months agoWAP: Clamp our value lengths to a usable value.
Gerald Combs [Sat, 5 Feb 2022 18:25:25 +0000 (5 10:25 -0800)]
WAP: Clamp our value lengths to a usable value.

tvb_get_guintvar returns a length which is often used for arithmetic.
Clamp it to a value which is less likely to overflow. Fixes #17925.

(cherry picked from commit 2a4171fc06645ba70c9b657528679e111db0791b)

5 months agortmpt: limit the number of iterations in rtmpt_get_amf_length().
Dario Lombardo [Thu, 30 Dec 2021 00:13:55 +0000 (30 01:13 +0100)]
rtmpt: limit the number of iterations in rtmpt_get_amf_length().

This prevents a infinite-loop caused by crafted packets.

Fix: #17813.
(cherry picked from commit 24403a9a35cd7fbe5ea6e596b1c6deb9d8633566)

5 months agoZigBee ZCL: fix the zero-length item check.
Guy Harris [Mon, 7 Feb 2022 19:35:28 +0000 (7 11:35 -0800)]
ZigBee ZCL: fix the zero-length item check.

The fix for #17926 got the check backwards, so non-empty arrays, sets,
and bags couldn't be dissected, as they'd always report a "zero-length
item" error.  Both versions of the check dissect zero-length items, as
they test for equality, but the old version thought that a
non-zero-length item was also bad, as the offset was greater after
dissecting the item than before dissecting the item.

(cherry picked from commit 6b3daa9aec7d549bf583e22727c67885cdb9321b)

5 months agoCMS: get rid of globals
John Thacker [Thu, 6 Jan 2022 13:51:54 +0000 (6 08:51 -0500)]
CMS: get rid of globals

Get rid of the global content_tvb and object_identifier_id in
the CMS dissector, and put them in a packet scoped proto data
struct, so that when there's a non fatal exception retrieving
the OID we don't use the global value from a previous packet
(or worse, file), since what the content_tvb and object_identifier_id
pointed to were both packet scoped that could lead to memory
access violations.

Clear the values of the OID and the content_tvb each time before
they are retrieved, so that values from a previous PDU of CMS
in the same packet aren't used either. This was not quite as bad
as using a value already freed, but still bad.

Fix #17800, #17809, #17835, #17935

(cherry picked from commit c14d731e4580adea858b5745aa89c7975eff8966)

5 months agoQt: Fix show in folder issue
Roland Knall [Mon, 7 Feb 2022 09:53:49 +0000 (7 10:53 +0100)]
Qt: Fix show in folder issue

Opening a folder on Windows lead to undesired behaviour

Fixes: #17927

5 months ago[Automatic update for 2022-02-06]
Gerald Combs [Sun, 6 Feb 2022 16:37:29 +0000 (6 16:37 +0000)]
[Automatic update for 2022-02-06]

Update manuf, services enterprise numbers, translations, and other items.

5 months agoZigBee ZCL: Make sure our offset advances.
Gerald Combs [Sat, 5 Feb 2022 19:11:32 +0000 (5 11:11 -0800)]
ZigBee ZCL: Make sure our offset advances.

Fixes #17926.

(cherry picked from commit ebe22f7b7b6238d2cbe35889c89ffc3c485ea696)

5 months agoCSN.1: Fix some alignment issues.
Gerald Combs [Sat, 29 Jan 2022 23:37:45 +0000 (29 15:37 -0800)]
CSN.1: Fix some alignment issues.

Not all architectures allow unaligned access. Copy our 16- and 32-bit
values instead of using direct assignment. Ping #17882.

(cherry picked from commit 1fd1853837a28699ee6f3951b37b6e231204af02)

5 months agoPER: Check length calling tvb_new_octet_aligned()
Uli Heilmeier [Fri, 4 Feb 2022 20:00:17 +0000 (4 21:00 +0100)]
PER: Check length calling tvb_new_octet_aligned()

Fix calling tvb_new_octet_aligned() with length == 0

Related to #17890 case 1 and 6

(cherry picked from commit 64f98ee13c6d234e2c5781a5d7e61753240de17c)