diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-02-22 11:24:33 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-02-22 19:25:07 +0000 |
commit | 99ff8baed6f36d36a61b0ce9794be27d55eaa700 (patch) | |
tree | cf2450de48b96a01f5d2e6c01d21c32b6ce25274 /wiretap/peekclassic.c | |
parent | 73508e8cbdadc094bc4c6542d382885bb05302d8 (diff) | |
download | wireshark-99ff8baed6f36d36a61b0ce9794be27d55eaa700.tar.gz |
Use file extensions even more as a heuristic.
If a file type has a list of "typical" extensions, and a file has an
extension that is *not* one of those extensions, the file is unlikely to
be of that type.
For files that have extensions, after we try the heuristics that have a
list of "typical" extensions that includes the file's extension, try the
heuristics that have no such list, and after that try the heuristics
that have such a list but where the list *doesn't* include the file's
extension.
This fixes, for example, some cases where non-PacketLogger files were
getting identified as PacketLogger files.
Change-Id: I2d8c3b983ed6ccd692beb888668f77eb9b5f437b
Reviewed-on: https://code.wireshark.org/review/7315
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/peekclassic.c')
0 files changed, 0 insertions, 0 deletions