Diffusion GnuPG 3fbeba64a8bf

gpgparsemail: Fix case of zero length continuation lines.

Authored by werner on Apr 9 2015, 7:06 PM.

Description

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 <wk@gnupg.org>

Details

Committed
wernerApr 9 2015, 7:06 PM
Parents
rG6619ead2cfd2: sm: Fix certificate lookup in dirmngr cache.
Branches
Unknown
Tags
Unknown
Werner Koch <wk@gnupg.org> committed rG3fbeba64a8bf: gpgparsemail: Fix case of zero length continuation lines. (authored by Werner Koch <wk@gnupg.org>).Apr 9 2015, 7:06 PM