#3736: [PATCH] Fix buffer underread for empty header values
-------------------------+----------------------
Reporter: Lekensteyn | Owner: mutt-dev
Type: defect | Status: closed
Priority: major | Milestone:
Component: mutt | Version: 1.5.23
Resolution: fixed | Keywords: patch
-------------------------+----------------------
Changes (by Peter Wu <peter@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [70b85d8b232b1f72647bae49911c586aa135793d]:
{{{
#!CommitTicketReference repository=""
revision="70b85d8b232b1f72647bae49911c586aa135793d"
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.
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3736#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent