diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2020-12-22 17:18:12 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2020-12-22 21:32:55 +0530 |
commit | 9798906a426fc458b949271bcc9b8ad1608de867 (patch) | |
tree | 5a1246a4f139cbf9d77ae1d80d3e078ab65df498 /sysdeps/powerpc/fpu | |
parent | a2e5da2cf471b5ac849bcd7d9960466b9cd28a35 (diff) | |
download | glibc-9798906a426fc458b949271bcc9b8ad1608de867.zip glibc-9798906a426fc458b949271bcc9b8ad1608de867.tar.gz glibc-9798906a426fc458b949271bcc9b8ad1608de867.tar.bz2 |
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/powerpc/fpu')
0 files changed, 0 insertions, 0 deletions