URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b204ff4846fe84b7789893c6b1d9afbdecac5b5d
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
b204ff4 by Guy Harris (guy@xxxxxxxxxxxx):
Do bounds checking when decompressing WCP packets.
Extract the data offset and count only once, and make sure we don't run
past the end of the data we've copied from the packet; have
decompressed_entry() just do the decompression, rather than also
fetching the data offset and count.
Add some comments while we're at it.
Bug: 10844
Change-Id: I2dc2f9594422ffa8f15fd5c57c9dac2e30e363f4
Reviewed-on: https://code.wireshark.org/review/6514
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from 63d8e44 Fix ASCIIDOC detection broken by commit ae2888aeb2b418c9f62
adds b204ff4 Do bounds checking when decompressing WCP packets.
Summary of changes:
epan/dissectors/packet-wcp.c | 116 +++++++++++++++++++++++++++++-------------
1 file changed, 82 insertions(+), 34 deletions(-)