about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-128ibm-compat/ieee128-sprintf_chk.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2020-12-22 17:18:12 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2020-12-22 21:32:55 +0530
commit9798906a426fc458b949271bcc9b8ad1608de867 (patch)
tree5a1246a4f139cbf9d77ae1d80d3e078ab65df498 /sysdeps/ieee754/ldbl-128ibm-compat/ieee128-sprintf_chk.c
parenta2e5da2cf471b5ac849bcd7d9960466b9cd28a35 (diff)
downloadglibc-9798906a426fc458b949271bcc9b8ad1608de867.tar.gz
glibc-9798906a426fc458b949271bcc9b8ad1608de867.tar.xz
glibc-9798906a426fc458b949271bcc9b8ad1608de867.zip
addmntent: Remove unbounded alloca usage from getmntent [BZ#27083]
The addmntent function replicates elements of struct mnt on stack
using alloca, which is unsafe.  Put characters directly into the
stream, escaping them as they're being written out.

Also add a test to check all escaped characters with addmntent and
getmntent.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm-compat/ieee128-sprintf_chk.c')
0 files changed, 0 insertions, 0 deletions