Commit Graph

85567 Commits

Author SHA1 Message Date
Gtker 1fa99c5f0d woww: Update release-notes.adoc with more information 2022-10-25 19:08:09 +00:00
Gtker 15a7cfc943 Add WOWW to docbook/release-notes.adoc
As requested
https://gitlab.com/wireshark/wireshark/-/merge_requests/8356#note_1122847782
2022-10-25 19:08:09 +00:00
Gtker 238a49fcc5 woww: Add update mask 2022-10-25 19:08:09 +00:00
Gtker 2c921dd098 woww: Add Aura Mask 2022-10-25 19:08:09 +00:00
Gtker 81c2c29f7f woww: Auto generate implementation from wowm
This has been autogenerated from `wowm` descriptions of the messages at
https://github.com/gtker/wow_messages/tree/main/wow_message_parser/wowm/world
The generator is written in Rust and located at
https://github.com/gtker/wow_messages/tree/main/wow_message_parser/src/wireshark_printer
2022-10-25 19:08:09 +00:00
Gtker 460ad699bf woww: Make preparations for auto generating dissector 2022-10-25 19:08:09 +00:00
Chuck Craft 978def5b51 tools/compress-png: migration to python typos
Allow --list to run with no other options
Loop through all compressors checking if they exist
Add filename for searching in IDE
2022-10-25 17:52:28 +00:00
Jakub Pawlowski 974123c507 Bluetooth: add Volume Control Service characteristics parsing 2022-10-25 17:30:00 +00:00
Gerald Combs 708da48526 IEEE 802.11: Fix a length check.
Fix a length check issue introduced in 85a9e05c52.
2022-10-25 09:06:33 -07:00
Alexis La Goutte e7a4f4b2e3 H224: Fix typo (Sequence -> Segment)
Close #18514
2022-10-24 20:19:26 +00:00
AndersBroman 92d58f297d PER: Fix call_per_oid_callback() open type length is in bytes.
tvb_new_octet_aligned() expects the length in bits.
2022-10-24 20:18:34 +00:00
Gerald Combs 85a9e05c52 IEEE 802.11: Fix DSCP string handling
Replace looped snprintfs with wmem_strbuf_append_printfs.
2022-10-24 18:53:09 +00:00
Gerald Combs 39910654d3 IEEE 802.11: Fix SCIDX string handling
Appending to a string using snprintf inside a loop can be problematic
because you have to ensure that your start offset stays within the
bounds of your buffer and that your size (which is unsigned) doesn't
overflow. Switch to a wmem_strbuf.

Fixes #18527
2022-10-24 11:23:34 -07:00
Alexis Gryta ce2b9a046a .gitlab-ci's variables: as string 2022-10-24 18:14:26 +00:00
Brian Sipos c4b30942d0 epan: Fix build errors about try/catch block on some compilers
The original error was identified in a comment on !8583
2022-10-24 15:29:15 +00:00
John Thacker 0647fc5f23 SCTP: Fix host name address parameter
The deprecated Host Name Address Parameter, RFC 9260 3.3.2.1.4:
"At least one null terminator is included in the Host Name string
and MUST be included in the length."

That makes it a string which is both counted and null-terminated,
which is a FT_STRINGZ. Return the string as obtained rather than
formatting it a second time. Don't pass in a width as a format specifier,
because the length of the UTF-8 string is not necessarily the length
in octets, if replacement characters or escaping was used.

Fix #18534.
2022-10-24 13:25:24 +00:00
Lewis Hamilton 4de19bf866 Metamako: Fixed int being printed as hex
After a recent merge, a type was changed to PRIu64, when it should of been PRIx64
2022-10-24 09:58:19 +00:00
Guy Harris 8d1efeba40 h224: fix protocol name in comments.
[skip ci]
2022-10-24 01:39:43 -07:00
Stig Bjørlykke 3353a158a9 Add dot in Protocol column for H.xxx dissectors
Closes #18524
2022-10-24 09:26:14 +02:00
John Thacker 70ebded081 GTP, GTPv2: Use ENC_APN_STR for FQDN.
Both specifications say: "The FQDN field encoding shall be identical
to the encoding of a FQDN within a DNS message of section 3.1 of IETF
RFC 1035 [31] but excluding the trailing zero byte."

Since it's only one name, that probably means that compression is
impossible, and indeed the dissectors already check and assume that
if the first byte is in the letter range, that it's probably incorrectly
directly encoded as a dotted string instead of DNS-style.

Since compression isn't supported, use ENC_APN_STR to avoid generating
bogus UTF-8 in packets with errors.

Fix #18531
2022-10-24 01:24:57 +00:00
Chuck Craft c6e228bb17 Qt: Resolved Addresses - display filename if present 2022-10-24 00:07:09 +00:00
Chuck Craft 72234923c4 github: use latest winflexbison3 in workflow build
Use current version (2.5.24.20210105) which is hosted on github.
Should reduce timeouts previous version had which is hosted on
sourceforge.
2022-10-23 17:33:06 -05:00
Gerald Combs 30905d9c50 [Automatic update for 2022-10-23]
Update manuf, services enterprise numbers, translations, and other items.
2022-10-23 16:46:15 +00:00
Tomasz Moń 0e7c240897
capture: Convert sync pipe to GIOChannel
Reduce the amount of platform specific Wireshark code by using
GIOChannel watch, i.e. do not use UNIX specific GLib functionality and
do not peek into pipe every 100 ms on Windows.
2022-10-23 13:17:10 +02:00
AndersBroman 5c53de8f47 X2AP: Make it possible to dissct private IEs 2022-10-22 21:40:23 +02:00
John Thacker 398fb66598 wow: Reverse string bytes before converting to UTF-8
WOW has several 4 octet ASCII strings in reverse order. g_strreverse
does not work on UTF-8 multibyte characters, such as REPLACEMENT
CHARACTER when there are errors. Reverse the string buffer before
converting from ASCII.

Fix #18529
2022-10-22 09:34:23 -04:00
John Thacker be992b94a1 mpeg-descriptor: Ensure language code is valid UTF-8
Use tvb_get_string_enc to get the 3 character language code
when adding to the subtree.

Fix #18523
2022-10-21 22:10:29 +00:00
Gerald Combs 8514eb0e21 GitLab CI: Remove the "Latest Clang" job.
It was a subset of the "Code Checks + Clang Warnings" job.

[skip ci]
2022-10-21 13:10:23 -07:00
Jim Walker bd4c98b8ed Couchbase: remove unnecessary update to offset
Addresses clang-analyzer warning:

"packet-couchbase.c:2636:7: warning: Value stored to 'offset' is never read"

Change-Id: Ib91fbd64e08f65cbe83887ebdf5b6ae545672bc5
2022-10-21 18:43:41 +00:00
Gerald Combs 197e645f6a GitLab CI: Switch the RPM test jobs to the 2x-daily schedule.
[skip ci]
2022-10-21 11:42:41 -07:00
Gerald Combs 83d5533711 GitLab CI: Switch our Linux packages to a twice daily schedule.
The RPM packages use a versioned build directory, which creates problems
for ccache. The APT packages simply take a long time to build. Switch
both to a twice-daily schedule so that we don't set fire to CI minutes
in parallel with every merge.

Back out a recent CMake change since it's no longer needed.
2022-10-21 11:15:22 -07:00
Chuck Craft 61d81683c8 github: make yaml syntax consistent (msys2.yml)
Simplify output of grep | sort | uniq when checking "uses"
2022-10-21 15:15:16 +00:00
Chuck Craft d896660e63 github: make yaml syntax consistent (lockdown.yml)
Simplify output of grep | sort | uniq when checking "uses"
2022-10-21 14:30:45 +00:00
AndersBroman 533eb735e3 Camel: Dissect TimeAndTimezone
Closes #18485
2022-10-21 14:05:03 +00:00
John Thacker cbfa038602 UCP: Fix string encoding
For EMI and UCP, the encoding for alphanumeric messages, as
specified in ETS 300 133-3 as well as the EMI extension
specification, is rather unique: GSM 7-bit alphabet characters
are each translated (thus unpacked) to two hex byte IRA characters
(same as ASCII over the 0-9 A-F range), with '/' used as an
end of string indicator.

Translate the hex bytestring to bytes, and then convert the bytes
using the unpacked GSM 7-bit alphabet instead of treating them
as ASCII or UTF-8. Check for invalid bytes which are not ASCII hex
and replace them in the final returned string with the UTF-8
replacement character. Fix #18518 better.
2022-10-21 07:39:44 -04:00
João Valverde 6aa33f0fc9 wmem: Make strbuf_utf8_validate() accept embedded NUL bytes 2022-10-21 10:21:21 +00:00
ismaelrti 338e6b50e2 RTPS: Parse Secure Volatile DATA
Added dissection for DATA(v) submessages.
2022-10-21 09:40:48 +00:00
João Valverde 8b3521272a H.224: Fix protocol filter name to match fields and convention 2022-10-21 09:26:11 +01:00
AndersBroman 3be3b2cc95 H224: Add a basic dissector
ping: #18514
2022-10-21 08:18:07 +00:00
kenneth topp 3e92ca0147 Update to https for Acknolodgements (needed for one url) 2022-10-21 08:16:52 +00:00
Alexis La Goutte 6d60a07ea1 ieee802.11: Update doc link and revision 2022-10-21 08:15:30 +00:00
Jakub Pawlowski c76ef65af5 Bluetooth: add RSI and Broadcast_Name AD parser 2022-10-21 08:13:56 +00:00
Jim Walker 76e4bc1c69 Couchbase: Add RangeScan opcodes and request definitions
This commit adds support for requests of:

* RangeScan create (with a JSON value)
* RangeScan continue (with binary extras)
* RangeScan cancel (with binary extras)

And support for the RangeScan create response 128-bit uuid

949615071b/docs/range_scans

Change-Id: Iea7a0bcaea82a22dd938247c71afc57b4a0869cf
2022-10-21 08:12:13 +00:00
Car Benjamin b7a7921699 Increased EBHSCR packet size 2022-10-21 08:10:47 +00:00
Guy Harris 1070328597 packet bytes: do a simpler test for "is this ASCII?"
Just test whether the octet has the 0x80 bit set.
2022-10-21 00:42:42 -07:00
Guy Harris de50666ec0 packet bytes: don't assume the unadorned "char" type is signed.
The C language does not guarantee that "char" is signed or unsigned; it
just states that it's "implementation-dependent".

At least some C compilers for some architectures make it unsigned, so
you need "signed char" to get a signed value.  In particular, it's
unsigned for most ARM compilers (compilers for Darwin-based OSes such as
macOS make it signed on all platforms, including ARM), which causes a
warning about "ba[i] < '\0'" always being false.

The purpose of that test is to check for octets that correspond neither
to ASCII printable characters nor ASCII control characters; just test
with !g_ascii_isprint(ba[i]) && !g_ascii_iscntrl(ba[i]).  (Those are
macros, so it's not as if that adds any subroutine call overhead.)

Add some comments to explain what's being done in
ShowPacketBytesDialog::symbolizeBuffer() while we're at it.  (Not one of
the better uses of C++ polymorphism, giving "replace the octet at this
location with this sequence of octets" and "replace all octets equal to
this value with this sequence of octets" the same name, even though what
they do differs significantly.  I would have called one replace_at and
the other replace_all or something such as that, but the Qt developers
didn't ask me....)
2022-10-21 06:09:55 +00:00
Gerald Combs 139e46898d CMake+GitLab CI: Add and use RPMBUILD_EXTRA_ARGS.
Add an RPMBUILD_EXTRA_ARGS variable to CMakeLists.txt and use it in
GitLab CI to define __cmake_builddir. This should let ccache work with
our RPM builds.
2022-10-20 21:53:37 -07:00
John Thacker d7c993d4af epan: Fix the end offsets for hex string items
hex_str_to_bytes_encoding() consumes pairs of hex digits (and
optional separator) to turn into bytes. It can return a pointer
to the character after the last digit consumed. Don't advance
the end pointer after a single unpaired digit that is not consumed
as part of the hex string returned.

tvb_get_string_bytes() can pass back the end offset. If conversion
fails, return the initial offset instead of zero to make repeated
calls easier in cases where the full length is not decoded due to
errors.

Relatedly, no dissector currently uses this return value, because
it's not useful currently.
2022-10-21 01:11:53 +00:00
Gerald Combs 31ee273517 GitLab CI: Try to get ccache working for RPM builds. 2022-10-20 17:51:16 -07:00
Gerald Combs 1321de7dc3 Packaging: Fix our tarball commit logic.
If CI_COMMIT_SHA is set, it probably means we're building in GitLab CI.
Prefer it over our stash commit ID.
2022-10-20 15:39:53 -07:00