aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dlsw.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-09-11 13:29:37 -0700
committerGuy Harris <guy@alum.mit.edu>2014-09-11 20:30:20 +0000
commit47c592938ba9f0caeacc4c2ccadb370e72f293a2 (patch)
tree9964603e3974d2130e467d7cff564a5c7bc25d12 /epan/dissectors/packet-dlsw.c
parentab6ad63e25a9f2e4e8b6e7845dd4513db5232811 (diff)
Add some additional checks in SnifferDecompress().
Check the input pointer in the while clause of the loop, so that we handle an empty input buffer. When reading a bit mask, check before fetching the bit mask that we have two bytes of bit mask and the byte after it. Before putting an uncompressed input byte into the output, make sure we wouldn't run past the end of the output buffer. Before copying an earlier string from the output buffer, make sure it doesn't run past the end of the data we've decompressed so far. Bug: 10461 Change-Id: I8bb8d0d291368ae8bf0ac26970ff54d3262a7e6e Reviewed-on: https://code.wireshark.org/review/4083 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-dlsw.c')
0 files changed, 0 insertions, 0 deletions