Commit Graph

83529 Commits

Author SHA1 Message Date
Damir Franusic 027f6a02e8 GDT: add dissector for SCTP PPID 49 protocol 2022-02-07 20:20:43 +00:00
Gerald Combs 2a4171fc06 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.
2022-02-07 20:06:41 +00:00
Guy Harris 6b3daa9aec 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.
2022-02-07 11:35:28 -08:00
David Perry 7f820c4a02 More descriptive names for some heuristic dissectors 2022-02-07 18:07:22 +00:00
Roland Knall 81f220ae80 Qt: Fix open explorer
Apparently on Windows, if a dialog contains spaces it is not properly
opened via /select. But opening the file via QDesktopServices leads to
the file not being selected in the open explorer windows (expectation by
the user). Therefore the original change is restored, but with a
differenc call which should handle the space issue in most cases better
than before. See
https://stackoverflow.com/questions/3490336/how-to-reveal-in-finder-or-show-in-explorer-with-qt
for a short explanation (bottom of post)

Fixes #17927
2022-02-07 15:57:59 +00:00
Joakim Karlsson b7babe8ae7 MSRCP: fix build issues [-Werror=maybe-uninitialized] 2022-02-07 14:50:13 +00:00
Stig Bjørlykke e03a590246 json: Handle application/senml+json
Add handling of application/senml+json and application/sensml+json.
2022-02-07 14:33:11 +00:00
Roman Volkov 0a2629f844 mpeg descriptor: add Service Availability Descriptor (0x72) 2022-02-07 14:22:08 +00:00
Martin Mathieson 64c4f74829 RLC-NR: work out a better id/data value for adding fragments. 2022-02-07 14:21:59 +00:00
Stefan Metzmacher 782671a99a Kerberos: handle etype == 0 in dissect_krb5_decrypt_CRED_data()
Within the cKSUMTYPE-GSSAPI (0x8003) BLOB we should not try to decrypt
CRED data if etype 0 is used.

This is used by a Heimdal client as the authenticator is already
encrypted. Windows encrypts it again using the same key that was
used to encrypt the authenticator.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-02-07 13:48:50 +00:00
Stefan Metzmacher b3716be761 Kerberos: Cope with FAST ordering in TGS-REQ PA-DATA
Windows clients use pA-TGS-REQ before pA-FX-FAST, which means
we have a the subkey from the pA-TGS-REQ
AP-REQ/Authenticator before we try to decrypt the
pA-FS-FAST/enc-fast-req.

But a Heimdal client sends pA-FX-FAST before pA-TGS-REQ.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-02-07 13:48:50 +00:00
Stefan Metzmacher ac71f9418a Kerberos: add support for new PAC buffers
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-02-07 13:48:50 +00:00
Roland Knall 835d5b3f97 Qt: Allow byteview to be hidden
Implements: #17887
2022-02-07 12:48:18 +00:00
Stig Bjørlykke 6dc92a5fb2 CBOR: Handle application/senml+cbor
Add handling of application/senml+cbor and application/sensml+cbor.

This dissector does not give a good representation of the content
and should be improved.
2022-02-07 12:21:26 +00:00
Roland Knall 5b6bf0b4f3 Qt: Fix show in folder issue
Opening a folder on Windows lead to undesired behaviour

Fixes: #17927
2022-02-07 10:54:38 +01:00
Uli Heilmeier bb8e3db0c6 MIH: Check length tvb_composite_append()
Check if length > 0 before calling tvb_composite_append()

Related to #17890 case 3
2022-02-06 18:18:21 +00:00
Gerald Combs d6fe0b3211 [Automatic update for 2022-02-06]
Update manuf, services enterprise numbers, translations, and other items.
2022-02-06 16:39:45 +00:00
Chuck Craft 8510013135 Prefs/Expert: disable Open Expert Info on Protocol Preferences context menu
Closes #17920
2022-02-06 13:10:08 +00:00
John Thacker fb38fe8573 doc: Document tshark -z stats
Document the currently undocumented -z statistics for tshark. Note
that all the stats added here exist in 3.6 as well. Fix #8353
(at least for now).
2022-02-06 12:48:46 +00:00
Stig Bjørlykke 9a11d75d4d Qt: Add Show as Json in Show Packet Bytes
Show as human readable indented Json.
2022-02-06 10:54:18 +00:00
Jim Young 42106c9688 Docs: Accurately describe our minimum GLib and where to get it 2022-02-06 10:17:25 +00:00
John Thacker 044dd69725 wsutil: Just use g_utf8_validate for now
g_utf8_validate_len doesn't exist until glib 2.60, so just
use g_utf8_validate.  It does the same thing when the length parameter
is unsigned. Fixes CentOS 7.
2022-02-05 22:34:21 -05:00
John Thacker 25d0c88251 epan: Add BASE_SHOW_UTF_8_PRINTABLE
Add BASE_SHOW_UTF_8_PRINTABLE and related function tvb_utf_8_isprint
for supporting fields of bytes that are "maybe UTF-8" (default or
SHOULD be UTF-8 but could be something else, with no encoding indicator),
such as SSID fields in IEEE 802.11 (See #16208), certain OctetString
fields in Diameter or PFCP, and other places where
BASE_SHOW_ASCII_PRINTABLE is currently used. Fix #5307
2022-02-06 00:32:13 +00:00
Gerald Combs ebe22f7b7b ZigBee ZCL: Make sure our offset advances.
Fixes #17926.
2022-02-05 11:11:32 -08:00
Uli Heilmeier a25347c59c GSM RLC MAC: Check length tvb_new_octet_aligned
Check if length not 0 before calling tvb_new_octet_aligned()

Related to #17890 case 28
2022-02-05 13:42:17 +00:00
Roland Knall d003ad9092 Qt: Display fieldname as tooltip in expert info dialog 2022-02-05 11:49:41 +00:00
Roland Knall 00149f1454 Git: Ignore Visual Studio Code workspace definition 2022-02-05 12:34:14 +01:00
Uli Heilmeier 64f98ee13c PER: Check length calling tvb_new_octet_aligned()
Fix calling tvb_new_octet_aligned() with length == 0

Related to #17890 case 1 and 6
2022-02-04 21:02:28 +01:00
Martin Mathieson 1f22c7e04c Trivial: change some formatting in hf item definitions 2022-02-04 11:56:24 +00:00
Gerald Combs 1d8690f8ef AMP: Fix large / infinite loops.
Make sure our offset advances in a few places. Fixes #17829.
2022-02-04 01:42:36 +00:00
Roland Knall 4e11aa1829 Qt: Show Preference key in the tooltip 2022-02-03 23:15:41 +00:00
Gerald Combs 1136ce9610 epan: Check our FT_UINT_BYTES and FT_UINT_STRING lengths.
Add length checks to get_full_length for FT_UINT_BYTES and
FT_UINT_STRING items. Fixes #17891.
2022-02-03 23:05:00 +00:00
John Thacker f2dbaa1d53 epan: Handle -1 length in tvb_ascii_isprint
tvb_ascii_isprint like other tvb_ functions accepts -1 as a parameter,
meaning "to the end of the tvb". Get the real length for the loop.
2022-02-03 22:47:35 +00:00
Martin Mathieson 3466798ed0 More mask/field-length fixes 2022-02-03 22:13:43 +00:00
Uli Heilmeier ad356d2672 WSUG: Fix TCP keep alive description
Fix description which flags are not set.
2022-02-03 20:38:05 +00:00
Gerald Combs 13f5d72453 ASN.1 PER + ATN-ULCS: Add checks for nulls in sequences.
In ASN.1 PER, Stop dissection if our sequence offset hasn't advanced
after 50 items.

atn-ulcs.asn overrides the definition of AttributeTypeAndValue as a
sequence of NULLs. Update our .cnf file so that we only dissect the
first item in that case.

Fixes #17842.
2022-02-03 20:10:33 +00:00
Uli Heilmeier 758b41a017 x509af: Call dissect_ber_bitstring() with hf_index
Calling dissect_ber_bitstring() with hf_index to fix a failed assertion.

Related #17890
2022-02-03 11:18:16 +00:00
Martin Mathieson 3c5fd8a0df q.261: Fix a couple of fields (masks/lengths) 2022-02-03 10:16:52 +00:00
Gerald Combs 3abd163127 Docs: Start migrating the Developer's Guide to Visual Studio 2022. 2022-02-03 03:05:03 +00:00
Dr. Lars Völker c442f180f7 TECMP: Allowing Chassis Temperature to be not available too
Not only the Silicon Temperature can be "not available" but the Chassis
Temperature too.
2022-02-02 15:20:38 +00:00
Stefan Metzmacher d848127c6e packet-smb2: use better error checking logic in do_decrypt
This hopefully avoids the warnings discussed in
https://gitlab.com/wireshark/wireshark/-/merge_requests/3671

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-02-02 14:39:29 +00:00
Martin Mathieson cfe93f8001 Fix some masks/widths. 2022-02-02 14:03:25 +00:00
Martin Mathieson a690119080 Fix some too-narrow field types. 2022-02-02 10:01:03 +00:00
Stefan Metzmacher a979189ab0 packet-smb2: add AES-256-* decryption
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-02-02 07:54:40 +00:00
John Thacker a30d6a442e GTP: Update checked messages
Updating the message checking for 3GPP TS 29.060 V16.0.0,
adding 7.5A MBMS Messages and 7.5B MS Info Change Reporting Messages.

This adds all the messages from TS 29.060. Some of them could be
updates to use the GSN specific fields in some cases. Also the
ETSI message checking needs to be updated to handle GTP' correctly.
2022-02-01 23:02:23 -05:00
John Thacker 0582cc7a68 GTP: Add UE Registration Query messages
Add message types 61 and 62, UE Registration Query Request and
Response, that first appeared in Rel 13.
2022-02-01 22:34:49 -05:00
John Thacker b7dc881571 GTP: Update more checked message contents to V16.0.0
Update 7.4 Location Management and 7.5 Mobility Management messages
to 3GPP TS 29.060 V16.0.0 for the check_etsi preference.
2022-02-01 22:13:25 -05:00
John Thacker 7023907c57 GTP: Add Initiate PDP Context Activation to checked messages
Add 7.3.12 and 7.3.13 Initiated PDP Context Activation Request
and Response to checked messages on UMTS.
2022-02-01 21:16:49 -05:00
John Thacker 185a5b3473 GTP: Update ETSI checked Tunnel Management Messages to V16.0.0
Update the optional IEs for the Tunnel Management messages to
3GPP TS 29.060 V16.0.0 for when the check_etsi preference is on.
2022-02-01 20:58:59 -05:00
John Thacker f201f23299 GTP: Use alternative GSN address decoders for Update PDP Resp
The GGSN addresses for control plane and user traffic are both
included or both not included in the Update PDP Context Response
message (included if the Cause is Request Accepted), so we know
which one is the control plane and which one is the user plane.
Also fix the coment about the IEs for the alternative address, and
that they are Conditional, not Optional.
2022-02-02 01:39:12 +00:00