diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2017-05-06 19:34:24 +0200 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2017-05-07 18:18:26 +0000 |
commit | d0e317d69e07412a330d1d67038ac4194caf55eb (patch) | |
tree | 164d87a1c8b8a4ab4bf66503d60e670ff3d6608c /epan/dissectors/packet-ixveriwave.c | |
parent | 8657646e0b2ee68de0defa1f9d9fd7ed23ba126f (diff) |
gif: refactor the detection of a gif file
Generally, we should not throw an exception before we know that this is
our file/packet. Use tvb_strneql() to get the version string. This
function does not throw an exception if there are fewer bytes left than
we requested.
(I know that we check for reported len < 20. However, for captured
length > 6 and reported length < 20, the current code does not work.)
Change-Id: I5214c5c9dc9da616a94ae96269ec1c9e6f412e8e
Reviewed-on: https://code.wireshark.org/review/21544
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/packet-ixveriwave.c')
0 files changed, 0 insertions, 0 deletions