Commit Graph

78913 Commits

Author SHA1 Message Date
Pascal Quantin b74077c717 MC-NMF: add some missing casts to please MSVC 2020-10-06 13:51:42 +02:00
Uli Heilmeier 557a64d9a9 MC-NMF/MS-NNS: New dissector .NET Message Framing Protocol
New dissector for MC-NMF (.NET Message Framing Protocol) and
MS-NNS (.NET NegotiateStream Protocol).

TLS implementation is not tested due to the lack of a sample capture.

Fixes: wireshark/wireshark#16861
2020-10-06 07:15:55 +02:00
Pascal Quantin fd85f6e9fc XnAP: fix the dissection of some NR and E-UTRA cell identity fields 2020-10-05 14:39:50 +02:00
Pascal Quantin aeb68eb68c X2AP: upgrade dissector to v16.3.0 2020-10-05 13:25:02 +02:00
Pascal Quantin 1dbc6f1da7 XnAP: upgrade dissector to v16.3.0 2020-10-05 10:50:45 +00:00
Pascal Quantin 4b4cd94093 E1AP: upgrade dissector to v16.3.0 2020-10-05 10:16:13 +00:00
Pascal Quantin 069ec8df85 NGAP: upgrade dissector to v16.3.0 2020-10-05 11:47:19 +02:00
Noel Power f97f5a6027 Only parse CRangeCategSpec record for CATEGORIZE_UNIQUE type
parse_CCategSpec was incorrectly always parsing the CRangeCategSpec
record, this record however is optional depending on the value of
CategType. (see MS-WSP 2.2.1.21)

Signed-off-by: Noel Power <noel.power@suse.com>
2020-10-05 08:26:56 +00:00
Pascal Quantin 44739c33ce S1AP: upgrade dissector to v16.3.0 2020-10-05 09:54:35 +02:00
Gerald Combs 9a3b1ad6bc [Automatic update for 2020-10-04]
Update manuf, services enterprise numbers, translations, and other items.
2020-10-05 00:42:10 +00:00
Guy Harris b3de8fd165 Add some comments noting changes that should probably be made. 2020-10-04 15:59:06 -07:00
Guy Harris 8a77692171 g_mallocate all strings returned from topic_action_url().
Callers assume it's been g_mallocated and attempt to free it.
2020-10-04 12:56:52 -07:00
Pascal Quantin f52e62ac9f Windows: fix WiX installer 2020-10-04 16:40:15 +02:00
Peter Wu 1936fef77a TLS: remove support for deprecated QUIC key format
Since draft-ietf-quic-tls-17, QUIC uses TLS 1.3 base secrets for
decryption, so no separate key label is necessary. Applications should
not generate such non-standard key log entries. quiche has already been
updated, picoquic will presumably follow soon if it has not already.
2020-10-04 08:23:25 +00:00
Guy Harris 4a9c412218 Fix a Coverity complaint.
For all cases in topic_action_url(), set url and break out of the switch
statement.

For the default case, set the URL to WS_HOME_PAGE_URL - we should never
get there, as here's a g_assert_not_reached() call before that, but this
should squelch Coverity's complaint.

Should fix Coverity CID 1467697.
2020-10-04 00:59:48 -07:00
Guy Harris d76ee2cb89 fbzero: do more detailed tag value offset checks.
Check the tag end offset - the offset in the packet of the tag's value's
end - to make sure that 1) it's at or after the offset of the
*beginning* of the tag's value and 2) that it's not past the end of the
packet; in either case, report an error with an expert info, and do not
show the value of that tag or any subsequent tags, as we don't have a
valid value for the length of this tag's value or even the *offset* of
subsequent tags' values.

For tags whose values have a fixed length, report an error, with an
expert info, if the tag value length isn't the expected value, and don't
dissect it.

For tags whose values have a minimum length, report an error, with an
expert value, if the tag value length isn't at least the minimum value,
and don't dissect it.

For tags whose values consist of a sequence of zero or more fixed-length
items, report an error, with an expert value, if there's leftover data
after processing those items.

Add some comments while we're at it.
2020-10-03 21:17:18 -07:00
Martin Mathieson 16dc0c71d3 Last batch of filter field string fixes.
There may still be some cases seen by
./toos/check_typed_item_calls.py --consecutive
that ought to be fixed, but wasn't sure so left.
2020-10-04 00:07:59 +01:00
Martin Mathieson 607831d870 Fix more filter field strings.
These appear to be copy/paste errors detected by running
./tools/check_typed_item_calls.py --consecutive

Quite a few issues still remain after this batch.
2020-10-03 22:11:32 +00:00
Lin Sun 6136c719da RTP: opus playback
It's possible to play opus payload with libopus (https://opus-codec.org/).
Closes #16882.

Helped-by: Pascal Quantin <pascal.quantin@gmail.com>
Signed-off-by: Lin Sun <lin.sun@zoom.us>
Signed-off-by: Yuanzhi Li <ryanlee@mail.ustc.edu.cn>
2020-10-03 21:15:09 +00:00
ishaangandhi c1eb36b84b ICMP: Fix dissection of Interface Information Object
If an address subobject was included, all subsequent subobjects (eg, interface name or MTU subobjects) would read from the same offset.
2020-10-03 12:43:36 -04:00
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
Guy Harris e02229250d Nettrace: Fix fix to calculation of changetime
A long time ago, in a galaxy far far away, C had arithmetic/logical-
plus-assignment operators, so that

	a = a {op} x;

could be written as

	a ={op} x;

Unfortunately, if {op} is -, that meant that you could have, for
example:

	a =- 17;

which could be interpreted as

	a = -17;

so they changed the operators to be

	a {op}= x;

I.e., if you want to subtract 1000 from a variable, do

	elapsed_ms -= 1000;

not

	elapsed_ms =- 1000;
2020-10-03 07:21:40 -07:00
Anders Broman 79bf1f7d99 Nettrace: Fix calculation of changetime
Closes #16869 (closed)
2020-10-03 07:23:55 +00: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
Gerald Combs 4a82dd165b Version: 3.3.1 → 3.3.2. 2020-10-01 12:18:35 -07:00
Gerald Combs d64aca7966 Build: 3.3.1. 2020-10-01 10:32:43 -07: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
Gerald Combs d2da4c7afb Qt: Use … instead of UTF8_HORIZONTAL_ELLIPSIS in translated strings.
Run

$ gsed -i -e 's/\(tr *(.*".*\)" *UTF8_HORIZONTAL_ELLIPSIS/\1…"/' $( ag -l 'tr *\(.*" *UTF8_HORIZONTAL_ELLIPSIS' )
$ gsed -i -e 's/\(tr *( *\)UTF8_HORIZONTAL_ELLIPSIS *"/\1"…/' $( ag -l 'tr *\( *UTF8_HORIZONTAL_ELLIPSIS *"' )

in ui/qt. As discussed in #16812, the UTF8_ macros were required at one
time because we only allowed ASCII in our source code. However, that
requirement has since been relaxed and Qt's translation framework
doesn't handle concatenating strings and macros very well.
2020-10-01 06:40:14 +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
Dario Lombardo df7d1905eb github: fix macOS build.
Use xcode from command line tools.
See:
  https://www.wireshark.org/lists/wireshark-dev/202004/msg00065.html
2020-09-30 17:59:20 +00:00
Gerald Combs 4105e65add Tools: Handle leading "#"s in gen-bugnote.
GitLab's version of Markdown denotes issue IDs with a leading "#".
2020-09-30 09:56:53 -07:00
Gerald Combs bf46e5c4cc Docs: Note that you can group filter buttons.
Note that you can group filter buttons in the release notes and in the
filter toolbar docs.
2020-09-30 16:27:38 +00: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
Gerald Combs c34bc0cf4c Qt: Handle palette changes in the packet diagram.
Handle ApplicationPaletteChange (e.g. dark / light mode switching)
events in the packet diagram. Add resetScene() and call it where needed.
2020-09-28 23:56:08 +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