Wireshark-commits: [Wireshark-commits] master-2.6 addd4b7: Don't let randpkt write packets libwiret
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=addd4b70fc2d8526892281440c0560b79cdce957
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.6
Repository: wireshark
Commits:
addd4b7 by Guy Harris (guy@xxxxxxxxxxxx):
Don't let randpkt write packets libwiretap can't read.
Wiretap imposes an arbitrary limit on the maximum packet size, to
prevent it from trying to allocate a huge packet buffer and possibly
running out of address space on ILP32 platforms or just eating too much
backing store on LP64/LLP64 platforms. Don't write packets with a
length greater than that limit.
Bug: 14107
Change-Id: Iba4fe3b008b044215647ba3f838ae7b3ac66c585
Reviewed-on: https://code.wireshark.org/review/28232
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
(cherry picked from commit 4e7f4881d2cf6fe69de0661c2441e82dd525e59e)
Reviewed-on: https://code.wireshark.org/review/28233
Actions performed:
from 470d59e Clean up handling of counted blobs of bytes.
adds addd4b7 Don't let randpkt write packets libwiretap can't read.
Summary of changes:
randpkt_core/randpkt_core.c | 7 +++++++
1 file changed, 7 insertions(+)