]> granicus.if.org Git - mutt/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)
commite7fbb18265714403ee686c86e8e487ed21765829
treefc6e5a0ec9fe01ffd461fc075343bbd030e55c3e
parentb5989ae05c4fe1711914213bb685d655056b4e2e
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