summaryrefslogtreecommitdiff
path: root/epan/stream.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-03-22 23:18:30 +0000
committerGuy Harris <guy@alum.mit.edu>2013-03-22 23:18:30 +0000
commit3295912210fa1a8d7d0b1a18aa7c100f27905ed1 (patch)
tree59ba420143924de8ef069607beb234868612cbd2 /epan/stream.c
parent100b208c9a3e093e942d2908980b60bf20ed309b (diff)
downloadwireshark-3295912210fa1a8d7d0b1a18aa7c100f27905ed1.tar.gz
Try to handle lines with NULs in them. They aren't valid lines, but at
least one fuzzed capture contains them, and using ep_strndup() to copy the line means that the actual amount of memory allocated for the copy will be less than the length of the line, and code that parses the line assuming that there are value_len+1 bytes in the buffer (including the terminating NUL), such as the current parsing code, will break. We should really have code in Wireshark to handle counted strings, and have those be what we extract from packets. (And we should handle non-UTF-8/non-UTF-16 encodings, and octet sequences that aren't valid strings for their encoding, and handle display of invalid strings and non-printable characters, and....). Use g_ascii_ versions of various isXXX() and to{upper,lower}(), so we don't get surprised by the behavior of the user's locale. svn path=/trunk/; revision=48490
Diffstat (limited to 'epan/stream.c')
0 files changed, 0 insertions, 0 deletions