Commit Graph

11 Commits

Author SHA1 Message Date
João Valverde 19dcb725b6 epan: Remove STR_ASCII and STR_UNICODE
These display bases work to replace unprintable characters so the
name is a misnomer. In addition they are the same option and this
display behaviour is not something that is configurable.

This does not affect encodings because all our internal text strings
need to be valid UTF-8 and the source encoding is specified using
ENC_*.

Remove the assertion for valid UTF-8 in proto.c because
tvb_get_*_string() must return a valid UTF-8 string, always, and we
don't need to assert that, it is expensive.
2021-12-03 04:35:56 +00:00
Brian Sipos d2b249a445 COSE: Fix fallback to CBOR dissection when map key is registered but disabled. 2021-10-23 17:04:23 +00:00
Dr. Lars Völker 7f9b8874b5 BPSEC, BPv7, COSE: Bugfix MacOS build
The usage of PRIi64 and PRIu64 may lead to failed builds on MacOS - at
least it did for me.

This patch fixes this.
2021-10-11 11:58:23 +02:00
Brian Sipos bc3bced07d COSE: Handle indefinite tstr/bstr encodings 2021-10-05 21:11:36 +00:00
Stig Bjørlykke 0ca24f01d7 cose: Fix memory leaks
Do not allocate cose_param_key_t in dissect_header_pair(), this may
leak. Use wmem_strdup() to temporary copy a string.

Fixes #17627
2021-10-05 08:18:31 +02:00
Alexis La Goutte 7ca5d99d1e core: Fix -Wdocumentation
packet-cose.c:422:5: warning: '@return' command used in a comment that is attached to a function returning void [-Wdocumentation]
2021-10-03 19:22:06 +00:00
Alexis La Goutte f0da2cf58f core: Fix Wmissing-prototypes
packet-cose.c:1221:6: warning: no previous prototype for function 'proto_reg_handoff_cose' [-Wmissing-prototypes]
packet-cose.c:1185:6: warning: no previous prototype for function 'proto_register_cose' [-Wmissing-prototypes]
2021-10-03 19:22:06 +00:00
Alexis La Goutte 3cce9e3a74 core: Fix Clang Analyzer Warning
Value stored to 'sublen' is never read
2021-10-03 19:22:06 +00:00
Martin Mathieson 0173ea0ec1 COSE: make some functions static 2021-09-30 13:42:24 +00:00
Joakim Karlsson 6d04c07955 COSE: fix might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered] 2021-09-29 14:13:09 +00:00
Brian Sipos abd0f1183f COSE dissector from dtn-wireshark project 2021-09-29 08:51:13 +00:00