Wireshark-commits: [Wireshark-commits] master ada1a5c: Add record length checks.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ada1a5c770e00d087385e2ec870291d67e190959
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
ada1a5c by Guy Harris (guy@xxxxxxxxxxxx):
Add record length checks.
Make sure the summary record is large enough; if not, report it as a bad
file.
If it's *too* large, skip the added data.
Clean up the length check for the header records - use sizeof, as we
later use sizeof when subtracting the fixed length portion's length.
Change-Id: I70697804eaa0cbbb1fb074eadf6457d237f26876
Reviewed-on: https://code.wireshark.org/review/36814
Petri-Dish: Guy Harris <gharris@xxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
Actions performed:
from 1070d7b Fix a comment.
add ada1a5c Add record length checks.
Summary of changes:
wiretap/lanalyzer.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)