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 /misc/Makefile | |
parent | a2e5da2cf471b5ac849bcd7d9960466b9cd28a35 (diff) | |
download | glibc-9798906a426fc458b949271bcc9b8ad1608de867.tar glibc-9798906a426fc458b949271bcc9b8ad1608de867.tar.gz glibc-9798906a426fc458b949271bcc9b8ad1608de867.tar.bz2 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 'misc/Makefile')
-rw-r--r-- | misc/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/Makefile b/misc/Makefile index 58959f6913..92816af2a2 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -88,7 +88,7 @@ tests := tst-dirname tst-tsearch tst-fdset tst-mntent tst-hsearch \ tst-preadvwritev tst-preadvwritev64 tst-makedev tst-empty \ tst-preadvwritev2 tst-preadvwritev64v2 tst-warn-wide \ tst-ldbl-warn tst-ldbl-error tst-dbl-efgcvt tst-ldbl-efgcvt \ - tst-mntent-autofs tst-syscalls + tst-mntent-autofs tst-syscalls tst-mntent-escape # Tests which need libdl. ifeq (yes,$(build-shared)) |