Commit Graph

75822 Commits

Author SHA1 Message Date
Pascal Quantin a754879c7d X2AP: upgrade dissector to v15.6.0
Change-Id: Iffa23a10350ad8ef765401b50373a7d6aaf5d2bf
Reviewed-on: https://code.wireshark.org/review/33971
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-16 22:27:50 +00:00
Aurelien Aptel 22e74ec018 tvb_lz77huff: reduce stack memory usage
clang errs about the stack frame size being too big.

* use indexes instead of pointers
* use guint8 instead of gboolean (== int)
* remplace hard coded 512 with #define

Change-Id: Idae70677f20e88ac8bba93899573e0137b9a3d7e
Fixes: 0db39ae59a ("smb2: add support for decompression")
Reviewed-on: https://code.wireshark.org/review/33965
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-07-16 21:42:52 +00:00
Guy Harris 6a7b01255a Don't just grab raw string data with tvb_memcpy().
Use proto_tree_add_item...() routines to add strings; use
tvb_get_string_enc() to extract strings.  That way, all strings are
fetched using an encoding value, to properly map to UTF-8.

Change-Id: I2118e812965cfad5d8c288ea40fa50aca9c67fa8
Reviewed-on: https://code.wireshark.org/review/33970
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-16 21:30:48 +00:00
Stefan Battmer 1e630b42e1 gvcp, gvsp, u3v: GEV 2.2, new PFNC pixel formats
- Added the full GigE Vision 2.2 feature set including
  GenDC, extended bootstrap registers and new
  capability and configuration bits
- Fixed typos
- Added all the latest pixel formats as defined by the
  PFNC standard document to the gvcp, gvsp and u3v
  dissector

Change-Id: Ic60f0252caef99b222262e96e3f2296c9fccccad
Reviewed-on: https://code.wireshark.org/review/33898
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 20:01:54 +00:00
Alexis La Goutte e08fe4f4c8 capture_sync: fix empty paragraph passed to '@param' command [-Wdocumentation]
Change-Id: Ia98a912f4b1992ec4e65eec1107a5483ba4708eb
Reviewed-on: https://code.wireshark.org/review/33962
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 10:27:01 +00:00
Alexis La Goutte 29d4f44246 QUIC: Update QUIC invariant draft release
Ping-Bug: 13881
Change-Id: Ice1b76fc81ce40a7fc3ef138af272855fc9d9a4e
Reviewed-on: https://code.wireshark.org/review/33964
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-07-16 09:39:31 +00:00
Gerald Combs 8147af211d Editcap: Allow floating point split intervals.
Update the `-i` option to allow floating point values as suggested at
https://stackoverflow.com/questions/57004719/split-wireshark-to-miliseconds

Change-Id: I24028d409bc441ed3b45ac2179f7c42b2bc424bc
Reviewed-on: https://code.wireshark.org/review/33938
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 06:43:09 +00:00
Kenneth Soerensen 2377dff96c IEEE 802.15.4: Do not create new addresses but reuse the existing ones
Change-Id: I86519fe73b9225f5e1e19e20977debbea4aa0d74
Reviewed-on: https://code.wireshark.org/review/33954
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 06:42:40 +00:00
Uli Heilmeier 79484e84fd BGP: Adding draft-ietf-bess-evpn-igmp-mld-proxy
Adding support for draft-ietf-bess-evpn-igmp-mld-proxy-03

Bug: 15911
Change-Id: I42c0cf4551a7669742457691cc820a4057faf697
Reviewed-on: https://code.wireshark.org/review/33951
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 06:41:55 +00:00
Peter Wu 3967f60e45 QUIC: update for new Connection ID Lengths (draft -22)
Fixes decryption and decoding of draft -22 traces.

Bug: 13881
Change-Id: Id5bdee1e6cf2b6f91ec06d7745d2939640802c31
Reviewed-on: https://code.wireshark.org/review/33961
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 06:40:10 +00:00
Peter Wu bafe354fbd QUIC: update error code field size (draft -21)
The Application and Transport Error Codes field has changed from 16-bit
to variable-length. Update fields accordingly. Remove the "STOPPING"
application code, this was removed in draft -17.

Bug: 13881
Change-Id: I1007ec614923331650b63a3b1502676db349c9cb
Reviewed-on: https://code.wireshark.org/review/33960
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 06:38:49 +00:00
Peter Wu 26092a912e QUIC: update salt, add new TP, add new NCI field (draft -21)
Update decryption salt, add new transport parameter
(active_connection_id_limit), add new Retire Prior To field to NCI.

Due to the salt change, this drops support for draft -20 and older.

Bug: 13881
Change-Id: I99c25575af596193b96521abe81dca2fed0f8082
Reviewed-on: https://code.wireshark.org/review/33959
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 06:37:55 +00:00
Peter Wu b2a437e1c8 QUIC: remove support for draft -18 and older
Update all comments to the latest draft version (draft -22) and remove
support for draft -18 and older.

Bug: 13881
Change-Id: Ide3a5b8f94ffbfa8281415f3cebdecd84346bc48
Reviewed-on: https://code.wireshark.org/review/33958
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-16 06:36:19 +00:00
Peter Wu 954b958aa1 tvbuff_lz77huff: workaround for -Wmissing-braces warning in Clang
Clang 8 emits a false positive when the first subobject of a structure
within another structure is not a signed integer. As workaround, shuffle
the struct member such that the first subobject is not a structure. See
https://bugs.llvm.org/show_bug.cgi?id=39931

Change-Id: Ic49413c202abb60a5782f9dbe99921e766b0153e
Reviewed-on: https://code.wireshark.org/review/33956
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Aurélien Aptel <aaptel@suse.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-07-15 23:02:13 +00:00
Guy Harris 7c144f4a30 Get display strings for the AE titles.
They're used in display strings (columns, higher-level protocol tree
items, hostnames in Export Objects tables), so get display strings.

That means they're not guaranteed to be 16 octets long, so allocate them
as file-scope strings (the structure containing pointers to them is
allocated with file scope), with leading and trailing blanks stripped.

Change-Id: I291884be39557d861927020e682b0bdadfe41dbb
Reviewed-on: https://code.wireshark.org/review/33955
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-15 21:23:27 +00:00
Aurelien Aptel 0db39ae59a smb2: add support for decompression
The latest iteration of Microsoft updates to SMB3 added compression to
the protocol. This commit implements decompressing and dissecting
compressed payloads.

The compression algorithms that can be used are "Plain LZ77",
"LZ77+Huffman" and "LZNT1" which you can read more about in the
[MS-XCA] documentation. This set of algorithm is sometimes referred to
as XPRESS.

This commit reuses the existing uncompression API scheme already in
place with zlib and brotli and adds 3 tvb_uncompress_*() function
implemented in:
* epan/tvbuff_lz77.c
* epan/tvbuff_lz77huff.c
* epan/tvbuff_lznt1.c

A new function wmem_array_try_index() was added to the wmem_array API
to make bound checked reads that fail gracefully. New tests for it
have been added as well.

Since both reads (tvb) and writes (wmem_array) are bound checked the
risk for buffer overruns is drastically reduced. LZ77+Huffman has
decoding tables and special care was taken to bound check these.

Simplified versions of the implementations were succesfully tested
against AFL (American Fuzzy Lop) for ~150 millions executions each.

The SMB2/3 dissector was changed to deal with the new transform header
for compressed packets (new protocol_id value) and READ request
flags (COMPRESSED). Badly compressed or encrypted packets are now
reported as such, and the decryption test suite was changed to reflect
that.

This commit also adds a test capture with 1 packet compressed with
each algorithm as returned by Windows Server 2019, along with 3
matching tests in test/suite_dissection.py

Change-Id: I2b84f56541f2f4ee7d886152794b993987dd10e7
Reviewed-on: https://code.wireshark.org/review/33855
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2019-07-15 21:00:14 +00:00
Guy Harris 1a91aac974 Use proto_tree_add_item_ret_string() to add strings.
Don't just grab raw string data with tvb_memcpy(); all strings must be
fetched using an encoding value, to properly map to UTF-8.

Use the newly-added ENC_ISO_646_BASIC encoding, as that's what the 2003
DICOM spec says is used.

Change-Id: Idaae45a304c746c163b214e2d08e00870c69e9d6
Reviewed-on: https://code.wireshark.org/review/33952
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-15 18:42:12 +00:00
Pascal Quantin 1b39837cae F1AP: upgrade dissector to v15.6.0
Change-Id: I39f33ffc76856e0bad8cb39f1199fc8a881a293c
Reviewed-on: https://code.wireshark.org/review/33950
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-15 13:50:53 +00:00
Guy Harris 151159ad90 Clean up indentation.
Change-Id: I072ae41e48583ed52679cc58fb3b65e7654bf3ab
Reviewed-on: https://code.wireshark.org/review/33947
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-15 10:00:26 +00:00
Guy Harris 1d4d43c2d8 Fix whitespace.
Change-Id: Ic30151ee08d4561740f8a27ca5f57c695dd0e19b
Reviewed-on: https://code.wireshark.org/review/33943
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-15 08:02:20 +00:00
Guy Harris e26e0b4de0 Add support for the ISO 646 "Basic code table" encoding.
The "Basic code table" in ISO 646 is mostly ASCII, but some code points
either 1) have more than one glyph that can be assigned to them or 2)
have no glyph assigned to them.  National versions choose one of the two
glyphs for the code points in group 1) and assign specific glyphs to the
code points in group 2); the International Reference Version assigns the
same glyphs to those code points as does ASCII.

For the "Basic code table" encoding, we map the code points in groups 1)
and 2) to a REPLACEMENT CHARACTER; additional encodings can be added for
the national versions.

Add ENC_ISO_646_IRV (International Reference Version) as an alias for
ENC_ASCII.

Expand some comments, and add some comments, while we're at it.

Change-Id: I4f1b5e426ec193775e919731c5cae1224dc65115
Reviewed-on: https://code.wireshark.org/review/33941
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-15 07:50:30 +00:00
Guy Harris 258a5f6a17 Add support for code pages 855 and 856 for FT_STRINGZ strings.
Clean up some comments while we're at it.

Change-Id: I0cd014bf1d1e7dc740eac1721d5466377938655f
Reviewed-on: https://code.wireshark.org/review/33939
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-15 02:47:15 +00:00
Gerald Combs e5efd68d3b [Automatic update for 2019-07-14]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: Ia49e8d1cd5cefbcef6781a4abaab536b9547b4bf
Reviewed-on: https://code.wireshark.org/review/33929
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-07-14 08:20:51 +00:00
Thomas Wiens 90b1d0f3e6 s7comm: Adding and redesign of test and installation functions
New decoded TIS-functions: Jobs, BSTACK, ISTACK, LSTACK, Forces, Variable
status, block status, breakpoints

Change-Id: I7902bfcfe8d622a3e19c0c3b77492e7ad4ddecf5
Reviewed-on: https://code.wireshark.org/review/33927
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-14 06:34:23 +00:00
Darien Spencer 1436ec11bb AT: Remove copy-pasted comment
Comment is about CME error, should be in ZPAS dissection func.

Change-Id: Iad2bc3de564374b23ca60053d227e02219c2a8c4
Reviewed-on: https://code.wireshark.org/review/33926
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2019-07-13 16:01:55 +00:00
erikdejong 9baef1f8cb LoRaWAN: decode as for UDP
Allow decoding of LoRaWAN in UDP payload.

Change-Id: I23df8587b08423dd1c75a060edf87f41b675057b
Reviewed-on: https://code.wireshark.org/review/33924
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-13 14:50:33 +00:00
Darien Spencer d22db568a0 RRC: Remove duplicate dissection of algorithm cap bitmaps
This commit is effectively reverting  I88ddc2aec6805a77fcb3f3d547efda4d513ec919
The dissection logic is now generated into the dissector
following the changes I2f4258e2f4fd11c26bdc101e1375d0b5708610b7
and Iec2cb22e61e235a749c7d0f976bae8ad52e6c08f

Change-Id: I871c2b00d7a72103da83d6e64091886a8e2b12ed
Reviewed-on: https://code.wireshark.org/review/33923
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-13 13:43:29 +00:00
Thomas Wiens 41e08a5b62 s7comm: Implement packet reassembly
Implemented packet reassembly of userdata telegrams.
Modified existing functions which before had shown only raw data on
fragmented telegrams.

Change-Id: Ia8d02928c08ad5228da28ac6a4b4df7ed99ab47e
Reviewed-on: https://code.wireshark.org/review/33920
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-13 11:59:55 +00:00
Gerald Combs 8d2b635354 Qt: Fix our template icon appearance on LoDPI screens.
When creating a pixmap for a template icon, don't bother setting its
device pixel ratio. Otherwise it will interfere with QIcon's size
calculations.

Change-Id: I8c89ce49c57d558ae48baf9c31227898c0f7f9ca
Reviewed-on: https://code.wireshark.org/review/33919
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2019-07-13 09:16:17 +00:00
Guy Harris 2c9db3edd3 Get rid of unused variable.
It's filled in, and modified, but never used after that.

Change-Id: Id5e1e9e5bc3223b04bd77f94117388ec8aa274d6
Reviewed-on: https://code.wireshark.org/review/33922
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-13 00:56:18 +00:00
Pascal Quantin 5e54c7147e XnAP: get rid of duplicate bit string decoding
After gca694eb078, no manual decoding is required

Change-Id: I641ce984b08ec74d7075b9e7cdd0806ccd707a45
Reviewed-on: https://code.wireshark.org/review/33917
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-12 16:22:53 +00:00
Pascal Quantin e36e6c9115 ULP: get rid of duplicate bit string decoding
After gca694eb078, no manual decoding is required

Change-Id: Ic23daf75c317df8b022e2e9911a6ad025dceaae8
Reviewed-on: https://code.wireshark.org/review/33916
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-12 16:22:42 +00:00
Pascal Quantin 4d500e84ed LPP: get rid of duplicate bit string decoding
After gca694eb078, no manual decoding is required

Change-Id: Ibe83becaea2f3587e770f6346ec71e775d25cf75
Reviewed-on: https://code.wireshark.org/review/33915
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-12 16:22:31 +00:00
Darien Spencer 4deba602ce PER: Fixed named bitmap parsing of larger maps
Previous logic worked for bitmaps of 8 (and maybe less)
bits. For maps crossing 2 or more bytes all fields were
 parsed incorrectly by the lower 8 bits values.

Change-Id: Iec2cb22e61e235a749c7d0f976bae8ad52e6c08f
Reviewed-on: https://code.wireshark.org/review/33904
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-12 15:46:16 +00:00
Pascal Quantin 43cfbdc670 LOG3GPP: misc fixes
- register RR dissector
- a string added to a column must be in pinfo scope

Change-Id: I2eb0f91c7e505094b87193d277c55ce8a3c4483b
Reviewed-on: https://code.wireshark.org/review/33913
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-12 14:39:20 +00:00
Pascal Quantin 86cb2c7858 wiretap: do not pollute debug builds with candump debug messages
Change-Id: I2f7c4c3d23d5be27c1fac704272b9e581a4de0f7
Reviewed-on: https://code.wireshark.org/review/33912
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-12 14:39:11 +00:00
Roland Knall 5e59d50b46 Qt: Fix profile copy and delete
Delete lead to an issue with the sort model, where indeces where
no longer correctly associated with the source model.

Copy did not check if the name already existed in the dialog

Change-Id: I3668dffb1e1956f04a5b9e21c3fcdac266e0cc0c
Reviewed-on: https://code.wireshark.org/review/33911
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2019-07-12 13:23:56 +00:00
Pascal Quantin 57d67f8ee3 LOG3GPP: do not dereference a NULL pointer (CID 1450541)
Change-Id: Ic65f21bcc49657ac74bf2eb8d86cb59c29cc233e
Reviewed-on: https://code.wireshark.org/review/33907
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-12 12:48:51 +00:00
Anders Broman 4cc142ecbc doxygen: Exclude files giving warnings.
Change-Id: I731b6bc6c9baf84930ce9ad935403ac40b6bec8f
Reviewed-on: https://code.wireshark.org/review/33910
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-12 11:44:51 +00:00
Kenneth Soerensen 51464397c8 ZigBee: Dissect Electrical Measurement cluster
Bug: 15882
Change-Id: Iccd6b7d66b0ea87f57de8ae0fd4bedc296787749
Reviewed-on: https://code.wireshark.org/review/33901
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-12 10:54:51 +00:00
Anders Broman 96abc05815 Fix Wpointer-sign warnings.
Change-Id: I58383b280a04ea0f0f8185298459e07e47bf25e4
Reviewed-on: https://code.wireshark.org/review/33908
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-12 10:53:41 +00:00
Pascal Quantin 62abddc26e S1AP: upgrade dissector to v15.6.0
Change-Id: I87b7aba8abb69254f30429cdc1c84efac317b652
Reviewed-on: https://code.wireshark.org/review/33909
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-07-12 10:22:04 +00:00
Anders Broman 3a9c42ba8e Fix Wpointer-sign warnings.
Change-Id: I1ac6cfecf2ff4b12f75ed0214dc40983d3db3bc8
Reviewed-on: https://code.wireshark.org/review/33906
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-12 08:16:34 +00:00
Guy Harris 3ada70356f Have the message data just be a raw FT_BYTES field.
If somebody wants it interpreted, they should submit code to do so,
*along with a sample capture*, so we can see how it's *supposed* to be
interpreted - the way it was being interpreted makes no sense for
several reasons.

Change-Id: I2dbcb3915fd7d7d1b4a27be627f395ac43bc4130
Reviewed-on: https://code.wireshark.org/review/33905
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-12 07:11:56 +00:00
Guy Harris 2dd367a6f8 Squelch more -Wpointer-sign warnings.
Change-Id: Ib167b98df91bd741d83da7449ec52ac954d220af
Reviewed-on: https://code.wireshark.org/review/33903
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-11 20:07:52 +00:00
Guy Harris 1509d92f65 Always use string routines to extract strings from packets.
*All* strings have a character encoding, so *all* calls to process
strings should use routines that take encodings as arguments.  In the
case of ADB CS services, the encoding is ASCII, so ENC_ASCII.

Change-Id: I1f0e72e1d6c86917d092358487c1df40cf4dec47
Reviewed-on: https://code.wireshark.org/review/33902
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-11 19:28:25 +00:00
Maksim Salau bd4e293b7b wiretap: candump: Reset error info and fix scanner warnings
candump_open() may be called with non-empty error code and string.
The error code is not reset upon success in run_candump_parser() which may
mislead the caller function thus affecting opening the file.

yy_fatal_error(), yy_alloc(), yy_realloc() and yy_free() make no use
of the yyscanner argument, which results in warnings on OSX.
In order to get rid of those warning we provide our own
implementations of memory allocation functions and hack
YY_EXIT_FAILURE macro in order to pretend using the argument.

Change-Id: I672d374b26970b2699b9d789b6118e97ba660bdf
Reviewed-on: https://code.wireshark.org/review/33892
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2019-07-11 17:44:50 +00:00
Anders Broman c9a29e38c7 Fix Wpointer-sign warnings.
Change-Id: Idf8c07d54096a5b172f063e4dca999a24cc797a3
Reviewed-on: https://code.wireshark.org/review/33899
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-11 14:47:42 +00:00
Anders Broman 121a6fa6ae Fix Wpointer-sign warnings.
Change-Id: Ia7893c4c78b1f5fc124a0bb56ae47ed6ab514f6b
Reviewed-on: https://code.wireshark.org/review/33897
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-11 13:30:09 +00:00
Roland Knall 251b66da30 Qt: Fix warning and remove dead code
Fix a "discard const qualifier" warning and remove code, which
should be active in Qt5, but never made it to majurity

Change-Id: I8d4dd526d07413ca30ab0b8430c6b8205e4e3063
Reviewed-on: https://code.wireshark.org/review/33896
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2019-07-11 13:06:34 +00:00