diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-06-22 08:24:21 -0700 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-06-22 11:12:33 -0700 |
commit | 464d189b9622932a75302290625de84931656ec0 (patch) | |
tree | 86633be5a815b19d3e7f72d535dad1d13c6df328 /stdlib/Makefile | |
parent | dd06af4f81be9e6d6b5e3a72357a51fa7205d856 (diff) | |
download | glibc-464d189b9622932a75302290625de84931656ec0.zip glibc-464d189b9622932a75302290625de84931656ec0.tar.gz glibc-464d189b9622932a75302290625de84931656ec0.tar.bz2 |
stdlib: Remove attr_write from mbstows if dst is NULL [BZ: 29265]
mbstows is defined if dst is NULL and is defined to special cased if
dst is NULL so the fortify objsize check if incorrect in that case.
Tested on x86-64 linux.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'stdlib/Makefile')
-rw-r--r-- | stdlib/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile index adbda5f..d4a4d56 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -373,6 +373,9 @@ CFLAGS-tst-qsort.c += $(stack-align-test-flags) CFLAGS-tst-makecontext.c += -funwind-tables CFLAGS-tst-makecontext2.c += $(stack-align-test-flags) +CFLAGS-testmb.c += -D_FORTIFY_SOURCE=2 -Wall -Werror + + # Run a test on the header files we use. tests-special += $(objpfx)isomac.out |