]> granicus.if.org Git - neomutt/commit
Fix buffer underread for empty header values. (closes #3736)
authorPeter Wu <peter@lekensteyn.nl>
Tue, 10 Feb 2015 17:29:24 +0000 (18:29 +0100)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 10 Feb 2015 17:29:24 +0000 (18:29 +0100)
commitdbdcdc465e8f0e1509d6c7516daab249baa5a8a4
treebd033aa1943d92fe47d2034657e32ab5a83dd750
parent1076b427759ac8f0e72f1c3a742f582741aaa286
Fix buffer underread for empty header values. (closes #3736)

When a header has no value (*p == '\0' so l == 0), do not read outside
the buffer but print the newline anyway when a tag is already printed
(col != 0).

Caught by ASAN while opening a draft with no Subject.
sendlib.c