Commit c5c4f53b authored by Pádraig Brady's avatar Pádraig Brady

vasnprintf: fix potential use after free

* lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
flagged by clang-analyzer 3.4.2.
parent 79002fdd
2014-12-06 Pádraig Brady <P@draigBrady.com>
vasnprintf: fix potential use after free
* lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
flagged by clang-analyzer 3.4.2.
2014-12-05 Pádraig Brady <P@draigBrady.com>
filevercmp, posixtm: avoid compiler warnings with -O3
......@@ -5184,13 +5184,13 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
free (result);
if (buf_malloced != NULL)
free (buf_malloced);
CLEANUP ();
errno =
(saved_errno != 0
? saved_errno
: (dp->conversion == 'c' || dp->conversion == 's'
? EILSEQ
: EINVAL));
CLEANUP ();
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment