Add a check for an oversized record. 34/534/2
authorGerald Combs <gerald@wireshark.org>
Thu, 6 Mar 2014 19:27:45 +0000 (11:27 -0800)
committerGerald Combs <gerald@wireshark.org>
Thu, 6 Mar 2014 19:49:10 +0000 (19:49 +0000)
commitf567435ac7140c96a5de56dbce3d5e7659af4d09
tree509c45e3154487bc04388ea27887af405be3dba8
parent3b72014e95aa4d2853a4d701ac25f4b074529105
Add a check for an oversized record.

For now we declare the file corrupt and give up. We may want to handle
this more gracefully. Fixes a vulnerability discovered by Wesley Neelen
(bug 9843).

Remove the RCS ID and add modelines.

Change-Id: I418938d7d6485b27cc51cf1dde50bc42dabf8c85
Reviewed-on: https://code.wireshark.org/review/533
Reviewed-by: Gerald Combs <gerald@wireshark.org>
(cherry picked from commit 34144b8d4da141e8aa9b99221855edc9f4c73ad8)
Reviewed-on: https://code.wireshark.org/review/534
wiretap/mpeg.c