diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-06-11 07:09:11 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-06-11 07:09:11 +0000 |
commit | 34cb6f96d3bb52c0345d72b37c34ffd0da07a10e (patch) | |
tree | b49481d9c02c620b4e0aa4a9b93fd2840e6e260e /epan/base64.c | |
parent | 5cbccb3eadb2d6f86fea697c2d7eda389ab21cf7 (diff) |
From Michael Mann:
NUL terminate the decoded string.
Updated only dissector that uses epan_base64_decode() (packet-http.c) to assume
NULL termination.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7349
svn path=/trunk/; revision=43196
Diffstat (limited to 'epan/base64.c')
-rw-r--r-- | epan/base64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/base64.c b/epan/base64.c index 949e995c0a..98153639ae 100644 --- a/epan/base64.c +++ b/epan/base64.c @@ -64,6 +64,7 @@ size_t epan_base64_decode(char *s) s++; } + s[i*3/4] = 0; return i*3/4; } |