]> granicus.if.org Git - neomutt/commit
Fix potential memory leak in rfc2047_encode. (closes #3825)
authorKevin McCarthy <kevin@8t8.us>
Sat, 9 Apr 2016 01:38:27 +0000 (18:38 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sat, 9 Apr 2016 01:38:27 +0000 (18:38 -0700)
commitcc588fbf5d071a0380b06cb868d8bf3428bd731c
treefc6e5a0ec9fe01ffd461fc075343bbd030e55c3e
parentf1faba947a75083a69d780117cf2aaeefd944909
Fix potential memory leak in rfc2047_encode.  (closes #3825)

If convert_string() has nonreversible characters, the allocated output
buffer would be overwritten (and not freed) in rfc2047_encode().

Thanks to Richard Russon for the bug report and initial patch, and to
TAKAHASHI Tamotsu for the analysis and revised fix suggestion.
rfc2047.c