Submitter: Guy Harris (g...@alum.mit.edu)
Changed: branch: master-2.0
38b428a by Guy Harris (g...@alum.mit.edu):
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.
Reviewed-by: Guy Harris <g...@alum.mit.edu>
(cherry picked from commit c7042bedbb3b12c5f4e19e59e52da370d4ffe62f)
from 768b279 "NULL" is not what you use for a null pointer.
adds 38b428a Report an error for too-short packets.
Summary of changes:
wiretap/stanag4607.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
Sent via: Wireshark-commits mailing list <email@example.com>