about summary refs log tree commit diff
path: root/stdio-common/errlist.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2020-07-09 21:51:49 +0000
committerJoseph Myers <joseph@codesourcery.com>2020-07-09 21:51:49 +0000
commitede56038e50235cd1ca7de3602c9491d3b84b49b (patch)
treef9b35a1527c2cb3aa13d8162e29293a331f79b81 /stdio-common/errlist.c
parentc363f834cfcbf5efa5449ef13f62233a6d5b9422 (diff)
downloadglibc-ede56038e50235cd1ca7de3602c9491d3b84b49b.tar.gz
glibc-ede56038e50235cd1ca7de3602c9491d3b84b49b.tar.xz
glibc-ede56038e50235cd1ca7de3602c9491d3b84b49b.zip
Fix double free in __printf_fp_l (bug 26214).
__printf_fp_l has a double free bug in the case where it allocates
memory with malloc internally, then has an I/O error while outputting
trailing padding and tries to free that already-freed memory when the
error occurs.  This patch fixes this by setting the relevant pointer
to NULL after the first free (the only free of this pointer that isn't
immediately followed by returning from the function).

Tested for x86_64 and x86.
Diffstat (limited to 'stdio-common/errlist.c')
0 files changed, 0 insertions, 0 deletions