Commit Graph

85631 Commits

Author SHA1 Message Date
Roland Knall ea41d58d47 Qt: TrafficTree - Add headers to CSV/YAML export
Exporting did not include the header information if exported via
CSV or YAML in the new dialogs. Adding those back
2022-10-30 17:13:44 +00:00
Roland Knall b4a738e069 Qt: Fix unexpected bytes suffix
Packets obviously have not a "bytes" suffix, therefore
it should be removed.

Fixes #18229
2022-10-30 16:37:11 +00:00
Roland Knall ea60fdcb31 TrafficTree: Fix wrong element choosen in context menu
The context menu falsely assigns the proxied index to the context menu
entries, therefore always selecting the wrong model index for the
resulting functions.

Fixes #18xxx
2022-10-30 10:07:13 +00:00
Alexis La Goutte f8efd93fc7 LLT(veritas): Dissect new type of packet
Cluster use now 2 bytes length
follow with Destination Node Id and Source Node Id

Close: #18433
2022-10-30 09:56:58 +00:00
Roland Knall 58d545d5e6 IPP: NULL is not a valid use here
NULL was used as initial string, but this is leading to a seg-fault
on Apple Silocon hardware.
2022-10-30 09:48:29 +00:00
Alexis La Goutte 0b9edb2299 evs: fix typo for evs_d_bits_t0_values
should be { 0x6, "NB 24.4 kbps" } instead of the current { 0x6, "Not used" }
According to Table A.3 of 3gpp TS 26445

Reported by Massimiliano Agnoletti

Close: #18550
2022-10-30 09:37:49 +00:00
João Valverde 9504b54bc1 unicode-utils: Add a null check to UTF-8 validation
Fixes #18563.
2022-10-30 08:27:13 +00:00
John Thacker 4851b4ceb5 column-utils: Check for UTF-8 truncation
Functions that copy into a fixed sized buffer, like
vnsprintf and g_strlcat can truncate UTF-8 strings in
the middle of a character. Check for that with vnsprintf,
and replace some g_strlcat calls in the column utils with
ws_label_strcpy.

Fix #18554
2022-10-29 07:59:13 -04:00
Guy Harris ea9af624cd epan: eliminate timezone buffer.
Instead of formatting into a fixed-length buffer a string that's empty
if the timezone name is not to be shown and is a space followed by the
timezone name if it is to be shown, just pass to snprint_abs_time_secs()
both a separator string and a timezone name string, with both being
empty strings if the timezone name is not to be shown, and with the
first being " " and the second being the timezone name if the timezone
name is to be shown, with the separator printed before the timezone
name.

That way, we don't have to worry about how big the buffer needs to be.
2022-10-28 14:15:47 -07:00
Gerald Combs 0ae3315f53 Qt: Make sure our font setting is backward compatible.
Qt5's QFont::fromString() isn't compatible with Qt6's QFont::toString().
If we were built with Qt5, don't try to process a font preference that
was created by Qt6.

Fixes #18553
2022-10-27 10:46:06 -07:00
Alexis La Goutte 3f194ad187 gitlab-ci: move check tfs and typed_item_call to end of test
it will be more easy to see on the log
2022-10-28 18:09:38 +00:00
Chuck Craft a4f1e5c6fe NSIS: uninstall etwdump; extcap binaries not in program directory
Could not find evidence that extcap binaries were ever in
program folder so should not affect uninstall of old versions.
2022-10-28 14:59:49 +00:00
João Valverde 267954cda2 epan: Increase timezone buffer size
Some internationalized strings can exceed this size and become
truncated with encoding errors.

Fixes #18562.
2022-10-28 14:46:13 +01:00
Martin Mathieson b1bd41a1ae Metamako: make a tfs static 2022-10-28 11:54:29 +00:00
Martin Mathieson 0b83d51e75 E2AP: Add a comment for constant value taken from later spec 2022-10-28 10:41:06 +01:00
Guy Harris 083b07d88d Fix profile import/export menu items.
1) In English-language menus, menu item text should use title case, with
most words capitalized.  (I leave it to the Transifexors to capitalize
appropriately for other languages.)

2) Menu items that pop up dialogs should have "..." at the end of the
text.
2022-10-28 01:13:43 -07:00
Guy Harris 86af1d6707 e2ap: fix a compiler warning due to a strange maxofRICrequestID value.
The minimum and maximum length arguments to
dissect_per_constrained_set_of() are currently both ints.

According to O-RAN.WG3.E2AP-v02.03, section 9.3.7 "Constant
definitions", maxofRICrequestID is 1024, not 2^32-1; however, we were
specifying it as 2^32-1 (4294967295).

2^32-1 won't fit into an int, and Apple clang version 14.0.0
(clang-1400.0.29.102) warns about that:

    ./asn1/e2ap/e2ap.cnf:647:54: error: implicit conversion from 'long' to 'int' changes value from 4294967295 to -1 [-Werror,-Wconstant-conversion]
                                                      1, maxofRICrequestID, FALSE);
                                                         ^~~~~~~~~~~~~~~~~
    ./asn1/e2ap/packet-e2ap-val.h:7:40: note: expanded from macro 'maxofRICrequestID'
    #define maxofRICrequestID              4294967295
                                           ^~~~~~~~~~

The handling of MIN and MAX should be done with separate "minimum is
MIN" and "maximum is MAX" flags, and we might want either to have
asn2wrs.py reject attempts to have constraints with integer minimum and
maximum values outside the range [-2^31, 2^31-1], make the types for
sizes unsigned, or allow 64-bit constraints (and still limit the
constraint values, so we don't have to dive down a bignum rathole).

But, for now, we just change maxofRICrequestID to match what the 2022-10
version of the spec, 2.03, appears to say.

(I can't find the 2.01 version online, so I don't know whether it was
1024 in 2.01, or if it was changed in 2.02 or 2.03.)
2022-10-27 23:57:51 -07:00
John Thacker 4c3ebe73d3 epan: ensure that the result of ws_label_strcpy is terminated
Unless there is no available space, ensure that the label_str
passed into ws_label_strcpy is null terminated, in the cases
where the string to copy is the empty string, or begins with
invalid UTF-8.

Fix #18560. Fix #18551.
2022-10-27 18:37:17 -04:00
Martin Mathieson d46e7f90f2 E2AP 2.01 2022-10-27 20:26:11 +00:00
Martin Mathieson c8cf2f544c PER: Fix length of restricted character string item 2022-10-27 19:13:48 +00:00
Gerald Combs d560dd3948 Qt: Fix our default font size on Windows.
It looks like we need to adjust our monospace font size differently in
Qt6 on Windows.
2022-10-27 10:29:47 -07:00
João Valverde 4d2680cf75 DNS: Fix column info encoding errors
Return name from get_dns_name() is not UTF-8 and cannot be used
directly. Use "name_out" instead.

Fixes #18557.
2022-10-27 09:25:25 +00:00
João Valverde 89fe7720f3 PKTC: Fix timestamp encoding errors 2022-10-27 09:03:58 +00:00
João Valverde 6b468cbae7 VTP: Fix timestamp encoding errors
Fixes #18526.
2022-10-27 09:03:58 +00:00
João Valverde 00ac65ff83 AMQP: Fix char encoding errors
Fixes #18522.
2022-10-27 09:46:41 +01:00
James Ko f1ddda51d4 wisun: Rename field name with common abbreviations
Rename some HF field names [FIELDNAME] with common abbreviations and
add move Full name to blurb [FIELDDESCR].
2022-10-26 19:35:11 +00:00
James Ko e2c9021111 ieee802154-tap: Add PHY Header TLV
Sniffers may provide a PHR via the PHY Header TLV.
Dissects SUN FSK PHR with and without Mode Switch, and
Wi-SUN FSK Mode Switch PHR.
2022-10-26 19:35:11 +00:00
João Valverde 76a6e2a2bf ftypes: Do not sanitize strings for UTF-8 errors
The ftype itself is encoding agnostic. In the case of literal
display filter strings it is possible and legal to contain
invalid UTF-8.

Maybe it shouldn't be but that requires a user-friendly diagnostic
message, not silently sanitizing the string as is done currently
(only a debug message is printed in that case).

Do the debug checks in proto_tree_set_string() instead. That
still detects dissector code that might need fixing, which was
the purpose for this check.

Improve documentation and add admonition for proto_tree_add_string().

Ping #18521.
2022-10-26 16:23:55 +01:00
João Valverde c1cede8d7c epan: Format column string input for display.
Format the input for display, by escaping some non printable characters,
using ws_label_strcpy().

In some cases with vsnprintf() this requires using a temporary buffer.

Add some debug checks for invalid UTF-8 errors.

The intention here is to pass dissection data directly to the column
API, and the column functions are responsible for formatting that
data for display. This avoids having to call format_text() before
adding a string to a column and separates the concerns better.
Display formatting is an UI concern.
2022-10-26 13:28:19 +01:00
João Valverde 92e1357bb4 Rename ws_label_strcat() to ws_label_strcpy()
The semantics of ws_label_strcat() are closer to g_strlcpy() so
rename the function to reflect that.
2022-10-26 13:12:35 +01:00
João Valverde f55cb116a0 Remove memset() from ws_label_str()
In the interests of efficiency with multiple small writes avoid
doing a memset on the whole remaining length.
2022-10-26 13:12:31 +01:00
João Valverde c149e4112f epan: Rename a test 2022-10-26 13:12:12 +01:00
João Valverde 8920effd27 FiveCo Legacy: Fix raw bytes as UTF-8 2022-10-26 11:58:15 +01:00
João Valverde 62d6fb85c7 Netrom: Fix string truncation
Fixes #18532.
2022-10-26 11:57:09 +01:00
João Valverde 0157d74c44 epan: Fix bogus string truncations found with a search
Fix some unnecessary string truncations that look bogus to me.

Forcing a given UTF-8 byte length for no reason will in most cases
produce encoding errors.

Fixes #18548.
2022-10-26 11:14:06 +01:00
João Valverde 40ec1adfb0 S7Comm: Fix invalid UTF-8 value string chars
Fixes #18533.
2022-10-26 01:42:43 +01:00
João Valverde 56ee77d525 DNS: Do not truncate string arbitrarily
Truncating the decoded string to the encoded packet length is
the wrong thing to do.

Fixes #18535.
2022-10-26 00:37:37 +00:00
João Valverde 549e194e7c MPEG2 Descriptors: Validate ASCII strings
Fixes #18536.
2022-10-26 00:37:05 +00:00
John Thacker 5a144e6010 synergy: Format unknown packet types as UTF-8
Also fix an issue where the wrong bytes were being looked at
to determine if it was a handshak.

Fix #18528
2022-10-25 19:42:46 -04:00
Gerald Combs 23f206c8b8 GitLab CI: Build RPMs in parallel.
Our RPM spec runs `cmake --build ... -j1` on Fedora and Rocky. Set
RPM_BUILD_NCPUS, which increases the `-j` value so that ninja can make
full use of the system.

[skip ci]
2022-10-25 19:35:43 +00:00
Gtker 3a19d97867 woww: Make enums use biggest size occurrance 2022-10-25 19:08:09 +00:00
Gtker 71e989a0f4 woww: Make types have the FT of their largest type instead of smallest 2022-10-25 19:08:09 +00:00
Gtker da8a0e64f3 woww: Remove _guid from some HFs 2022-10-25 19:08:09 +00:00
Gtker f88027a1ef woww: Remove _guid from item and player in SMSG_ITEM_NAME_QUERY_RESPONSE 2022-10-25 19:08:09 +00:00
Gtker b2ee0f32d1 woww: Add underscore to buy_bank_slot_result 2022-10-25 19:08:09 +00:00
Gtker c77b972edc woww: Make SMSG_TURN_IN_PETITION_RESULTS use petition_results 2022-10-25 19:08:09 +00:00
Gtker bc433b41ce woww: Remove incorrect field from SMSG_PETITION_SHOWLIST 2022-10-25 19:08:09 +00:00
Gtker 302117823b woww: Update SMSG_PETITION_SIGN_RESULTS 2022-10-25 19:08:09 +00:00
Gtker ba1edd97e8 woww: Add SMSG_GUILD_ROSTER 2022-10-25 19:08:09 +00:00
Gtker 8e3d587421 woww: Remove skip fields and add gm_ticket_queue_status 2022-10-25 19:08:09 +00:00