#3825: [PATCH] BUG: Fix error-checking of convert_string() ---------------------+---------------------- Reporter: flatcap | Owner: mutt-dev Type: defect | Status: new Priority: major | Milestone: Component: build | Version: 1.5.24 Keywords: patch | ---------------------+---------------------- rfc2047.c - rfc2047_encode()
if (convert_string (d, dlen, fromcode, icode, &u, &ulen)) convert_string() returns (size_t)(-1) on error, and 0+ on success. Before the change, the converted string in 'u' would be leaked and replaced with a copy of the original string in 'd'. -- Ticket URL: <https://dev.mutt.org/trac/ticket/3825> Mutt <http://www.mutt.org/> The Mutt mail user agent