aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgparsemail.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-04-09 17:06:33 +0000
committerWerner Koch <[email protected]>2015-04-09 17:06:33 +0000
commit3fbeba64a8bfb2b673230c124a3d616b6568fd2f (patch)
tree8ca8b3a24c7699cfd7ba7e71e6bf60141a4ab184 /tools/gpgparsemail.c
parentsm: Fix certificate lookup in dirmngr cache. (diff)
downloadgnupg-3fbeba64a8bfb2b673230c124a3d616b6568fd2f.tar.gz
gnupg-3fbeba64a8bfb2b673230c124a3d616b6568fd2f.zip
gpgparsemail: Fix case of zero length continuation lines.
* tools/rfc822parse.c (parse_field): Loop after continuation line. -- Using header lines like Name:[lf] [space][lf] [lf] resulted in running into the "(s2 = strchr (delimiters2, *s)" branch and inserting a new token for the empty continuation line. This also led to one byte read after the string which is what Hanno figured. The new code should handle empty continuation lines correct. Reported-by: Hanno Böck Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/gpgparsemail.c')
0 files changed, 0 insertions, 0 deletions