summary refs log tree commit diff
path: root/stdlib/Makefile
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-06-22 08:24:21 -0700
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-06-22 11:12:33 -0700
commit464d189b9622932a75302290625de84931656ec0 (patch)
tree86633be5a815b19d3e7f72d535dad1d13c6df328 /stdlib/Makefile
parentdd06af4f81be9e6d6b5e3a72357a51fa7205d856 (diff)
downloadglibc-464d189b9622932a75302290625de84931656ec0.tar.gz
glibc-464d189b9622932a75302290625de84931656ec0.tar.xz
glibc-464d189b9622932a75302290625de84931656ec0.zip
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/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile
index adbda5f8a5..d4a4d5679a 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