Wireshark-commits: [Wireshark-commits] master-2.2 83aa52d: Report an error for too-short packets.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=83aa52d9ba654928d32923cf7aebb1d7a755d23f
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark
Commits:
83aa52d by Guy Harris (guy@xxxxxxxxxxxx):
Report an error for too-short packets.
The packet length field gives the length of the *entire* packet, so, by
definition, it must not be zero. Make sure it's at least big enough for
the packet header itself plus one segment header.
Bug: 13416
Change-Id: I625bd5c0ce75ab1200b3becf12fc1c819fefcd63
Reviewed-on: https://code.wireshark.org/review/20133
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
(cherry picked from commit c7042bedbb3b12c5f4e19e59e52da370d4ffe62f)
Reviewed-on: https://code.wireshark.org/review/20134
Actions performed:
from 5609829 Qt: Use correct wsApp signal for RecentFilesRead
adds 83aa52d Report an error for too-short packets.
Summary of changes:
wiretap/stanag4607.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)