Commit Graph

41453 Commits

Author SHA1 Message Date
Guy Harris a883081b70 Update URLs pointing to the bug database.
Switch from bugs.wireshark.org to the GitLab issues list.
2020-10-03 07:54:12 -07:00
Gerald Combs 3ff9406529 FBZERO: Make sure our offset advances.
Make sure our offset advances so that we don't infinitely loop.
Fixes #16887.
2020-10-03 06:52:10 +00:00
Guy Harris e013c5ec7f Clean up URLs.
Add ui/urls.h to define some URLs on various of our websites.  Use the
GitLab URL for the wiki.  Add a macro to generate wiki URLs.

Update wiki URLs in comments etc.

Use the #defined URL for the docs page in
WelcomePage::on_helpLabel_clicked; that removes the last user of
topic_online_url(), so get rid of it and swallow it up into
topic_action_url().
2020-10-02 20:13:42 -07:00
Gerald Combs 22e7ddb637 LBMSRS: Break out of a loop.
Break out of a loop if our offset advances. Fixes #16886.
2020-10-02 21:26:12 +00:00
Chuck Craft 4a0d8d4ef6 Qt: point to Lua wiki page now on Gitlab 2020-10-02 17:25:54 +00:00
Peter Wu 43e0bd125b QUIC: fix dissection of Short Header packets with Grease QUIC bit
The condition aimed to avoid interpreting padding bytes after the
Initial Packet as Short Header to avoid breaking decryption. However it
also prevents actual Short Header packets from being matched that have
the QUIC bit cleared.

To avoid breaking the latter, strengthen the condition to match the
former only. Tested with quic-31_grease_quic_bit__with_keys.pcapng (from
!429). Regression tested against a private Firefox Nightly trace.
2020-10-02 10:06:50 +00:00
Dr. Lars Völker b57832fdbf TECMP: Adding CAS flag for FlexRay
This adds the CAS (Collision Avoidance Symbol) to the TECMP dissector.

Signed-off-by: Dr. Lars Völker <lars.voelker@technica-engineering.de>
2020-10-02 04:58:56 +00:00
Alexis La Goutte 82e7835b2e EAP: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang
2020-10-01 07:14:40 +00:00
Ronnie Sahlberg 9ad3d14ea4 http: don't try to dissect zero-length bodies
Closes #16844

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-10-01 07:49:33 +10:00
Anders Broman a08e78f324 GTPv1: Highlight only the value part of "TEID Control Plane"
While at it use proto_tree_add_item_ret_uint().
Closes #16881
2020-09-30 12:22:04 +02:00
Alexis La Goutte b65893f4f4 lithionics: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang
2020-09-29 18:53:21 +00:00
Alexis La Goutte 71ea1f9017 dcerpc: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang
2020-09-29 18:53:21 +00:00
Alexis La Goutte 4ad8adeab4 gtp: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang
2020-09-29 18:53:21 +00:00
Alexis La Goutte e126d91455 mbim: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang
2020-09-29 18:53:21 +00:00
Alexis La Goutte de44c3e392 smb2: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang
2020-09-29 18:53:21 +00:00
Anders Broman 7d3ee49180 RTCP: Add dissection of Application mccp TS 24.380 2020-09-29 16:47:42 +00:00
Aurelien Aptel 7514e50d16 SMB2: add reasonable upper limit to pattern_v1 repetition
MAX_UNCOMPRESSED_SIZE is currently 16MiB.

Fix Coverity report CID 1467509: Insecure data
handling (TAINTED_SCALAR) Using tainted variable "times" as a loop
boundary.
2020-09-29 11:00:18 +02:00
Guy Harris 3502d53ffb Remove leftover cruft from previous comment. 2020-09-29 04:39:51 +00:00
Martin Mathieson 2ecd9f6818 IEEE 802.11: Use common filter string for action_code
For radio measurements, use same filter string as most others,
i.e. wlan.fixed.action_code.
2020-09-28 23:29:01 +00:00
Ronnie Sahlberg b9a2d861e4 quic: fix reassembly issue for smb2 (and other protocols)
If we did not find an msp that matched the current segment we would
try to find the msp for set-1 instead. This will only work IFF
we do not know the the exact size of the PDU and where it ends,
i.e. DESEGMENT_ONE_MORE_SEGMENT and friends.

In the case where "get msp for seq-1" gives us an msp where we know the exact
PDU boundary and the current seq is beyond the end of that boundary, then
we should not use the msp for seq-1 but instead treat this as a brand new PDU.

This fixes issues with SMB2-over-QUIC dissection that can be seen in the
sample capture for the "add smb2-over-quic" bug where only the first
multi-segment PDU would be dissected correctly for each direction.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2020-09-28 23:07:37 +00:00
Guy Harris c597927da8 Add some more string encodings.
Add an encoding for "unpacked" 3GPP TS 23.038 7-bit strings, in which
each code position is in a byte of its own, rather than with the code
positions packed into 7 bits.  Rename the packed encoding to explicitly
indicate that it's packed.

Add an encoding for ETSI TS 102 221 Annex A strings.

Use the new encodings.
2020-09-28 22:30:35 +00:00
Martin Mathieson 8b4e0148a2 Fix some more wrong filter names.
These are duplicates detected seen by running
check_typed_item_calls.py  --consecutive.

There are still quite a few more to go.
2020-09-28 18:20:09 +01:00
Nardi Ivan ec7c5699a7 QUIC: update to draft-31 2020-09-28 14:31:08 +00:00
Martin Mathieson 08ab0e5d1f Fix some wrong filter names.
These were detected by running check_typed_item_calls.py
with --consecutive, which flags items that have different
labels but the same filter string.  Usually this is because
of copy/paste.

Quite a few similar bugs still exist, will address in a future commit.
2020-09-27 18:40:13 +00:00
Aurelien Aptel 3d94644dc8 SMB2: add new pattern_v1 decompression support
Simple decompression algorithm that encodes a single byte and the
number of times it is repeated.

This algorithm can only be used in chained compression packets.
2020-09-26 02:23:23 +00:00
Aurelien Aptel b0f5b2c174 SMB2: handle chained compression
The compression header "reserved" field is now a flags field.
If the flags have the CHAINED bit, the meaning of the offset field
changes and becomes a length field.

	  "old" compressed method:

	  [COMPRESS_TRANSFORM_HEADER with Flags=0]
	    [OPTIONAL UNCOMPRESSED DATA]
	    [COMPRESSED DATA]

	  new "chained" compressed method:

	  [fist 8 bytes of COMPRESS_TRANSFORM_HEADER with Flags=CHAINED]
	    [ sequence of
               [ COMPRESSION_PAYLOAD_HEADER ]
               [ COMPRESSED PAYLOAD ]
2020-09-26 02:23:23 +00:00
Aurelien Aptel b2fd5bcfb9 SMB2: stick the compress header items under the header tree
This makes it behave like the other headers.
2020-09-26 02:23:23 +00:00
Aurelien Aptel fed08cfd45 SMB2: label decompressed data as such and mark as generated 2020-09-26 02:23:23 +00:00
Martin Mathieson 6f49de2e65 SDAP: Show presence in configuration, and summary in root. 2020-09-25 13:22:37 +00:00
João Valverde ca43dace10 IPv6: Update SRH dissection to RFC8754
Implements [1]. Some code was intentionally simplified from the previous draft
implementation, pending some real-world motivation.

[1]https://datatracker.ietf.org/doc/rfc8754/
2020-09-24 18:08:01 +00:00
Martin Mathieson fc64ba242a More dissector spelling fixes. 2020-09-24 16:40:51 +00:00
Martin Mathieson b00a76d36b SDAP: Add some long help, and fix filter name. 2020-09-24 16:16:33 +01:00
Pascal Quantin 04873cc5ef NAS EPS: fix dissection of IPv6 PDN address
Closes #16870
2020-09-24 11:30:19 +00:00
Xu c92ab1158e MAC-NR:for drb the lcid range is 4-32,lcid=3 corresponding srb3 2020-09-24 05:58:53 +00:00
Gerald Combs dcc8bbaf9b BLIP: Update an expert item.
Generalize the decompression error field name and description.
2020-09-23 12:44:30 -07:00
Jim Borden 4a94842710 BLIP: Fix decompression buffer bug
Until now, mistakenly, the buffer for decompressing compressed BLIP messages
has been statically allocated as 16 Kb, but that is not valid behavior.
16 Kb is the maximum size of a _compressed_ frame.  In theory, due to the
ability to zipbomb, there is virtually no upper bound on what the maximum
size of an uncompressed frame could be.  However, to keep sanity, it has
been made into a preference with a reasonable default that is not likely to
be exceeded (64 Kb).  The behavior before for this was that wireshark would
crash because the dissector would return NULL for a decompressed buffer due
to error and then try to deference it later.  A null check has been added,
so that the behavior is now that the packet will show
'<Error decompressing message>' instead, and log why it couldn't handle the
compressed message.  Closes #16866.
2020-09-23 19:36:10 +00:00
Alexis La Goutte b2380385a3 DHCP: Update Captive-Portal to RFC8910
now using code 114 (some conflict with code 160 and Polycom device)
2020-09-23 06:29:38 +00:00
Tom Yan 6387fd7729 X2AP : fix id-Target-SgNB-ID registered to wrong type 2020-09-23 05:55:21 +00:00
Gerald Combs 103d9140ae Kafka: Check returned offsets.
dissect_kafka_regular_bytes might return -1, so handle that in
dissect_kafka_message_old. Closes #16784.
2020-09-23 05:13:16 +00:00
Guy Harris 99f6ac1969 ncp: fix handling of NDS List requests and replies.
In requests:

There appear to be 2 bytes of unknown data (typically 0) after the
2-byte Request Flags field (are they just 2 bytes of additional flags?).
Skip past them before dissecting the iterator.

If there are no bytes remaining in the packet after the parent ID, stop
dissecting; some packets seem to stop there.  For those requests, assume
that the response will contain :

	entry ID;
	entry flags;
	subordinate count;
	modification time;
	base class;
	relative distinguished name;

although the last of those might be something else (it appears to be of
the form "CN={name}").

In replies:

For each returned entry, if the requested field flags in the request had
the DSI_OUTPUT_FIELDS bit set, fetch the returned field flags and use
that to determine what fields are present; otherwise, use the requested
field flags.
2020-09-22 19:57:52 -07:00
Guy Harris e487575362 ncp: fix setting elements of an ncp_record structure.
In dissect_nds_request():

Fill in fieds of the ncp_record structure only on the first pass; once
the first pass is complete, the structure's fully filled in.

That fixes cases where NDS replies aren't fully dissected because the
NDS verb isn't added to the ncp_record structure when the request is
dissected.

Fill in elements as soon as we have the value needed to fill it in, so
that it's filled in even if we throw an exception later, and so that
it's filled in only if we have the value in the packet, so that a valid
value isn't overwritten by a later packet that doesn't have the value.

This fixes cases where, in the second pass, NDS replies aren't fully
dissected because the NDS verb is overwritten in the ncp_record
structure when a continuation of the request is dissected.

Note that we should perhaps make the object_name field a pointer to a
wmem-allocated string, so that NULL can indicate "not set, hence not
known".
2020-09-22 10:47:43 -07:00
Alexis La Goutte 8201285759 EAP: Avoid to inscrement offset on proto_tree_add_item function 2020-09-22 11:20:09 +00:00
Tom Yan b746222896 X2AP : fix a typo 2020-09-22 10:26:00 +00:00
Ameya Deshpande 3ec16de87b USBLL: Code commenting and alignment
Following changes in the file:
1. Explain usbll_address_t and usbll_data_t.
2. Grouping header fields belonging to the same type of packets.
3. Removed unnecessary condition check for usbll_data pointer
   in dissect_usbll_data function.
4. Brief comments on the Macros.
5. Correct code indentation at a few places.

Signed-off-by: Ameya Deshpande <ameyanrd@outlook.com>
2020-09-22 07:30:11 +00:00
Gerald Combs ddd3910709 IPv6: Fix the bit lengths of top-level items.
Fix the bit lengths of the Version, Traffic Class, and Flow Label fields
so that they display correctly in the packet diagram.
2020-09-22 05:51:16 +00:00
Gerald Combs 1e2e32f8ab MySQL: Fixup connection data initialization.
Just use wmem_new0 instead of trying to initialize struct members
by hand. Closes #16854.
2020-09-22 05:32:52 +00:00
Gerald Combs 2b3e666a16 SSH: Fix some warnings.
Set a maximum key length and make sure we don't exceed it. Make sure
we're checking the prefixes of valid strings. Closes #16794.
2020-09-22 05:12:18 +00:00
Guy Harris af83d476dc ncp: add some XXX comments. 2020-09-21 23:20:33 +00:00
Guy Harris dde6261626 nds: use DSI_ #defines in case statement.
Use the DSI_ defines, rather than the raw hex values for bits, to make
it clearer what's being tested.

Make all of the DSI_ #defines, rather than just some of them, unsigned.
2020-09-21 14:27:15 -07:00
Aurelien Aptel 2af134ad2e SMB2: dissect new signing capability negotiate context
Dissect still-undocumented new context used by latest Windows Server
builds, as explained by MSFT engineers during SDC 2020 plugfest.
2020-09-21 22:06:16 +02:00