]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdlib: Remove attr_write from mbstows if dst is NULL [BZ: 29265]
authorNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 22 Jun 2022 15:24:21 +0000 (08:24 -0700)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Wed, 22 Jun 2022 18:12:33 +0000 (11:12 -0700)
commit464d189b9622932a75302290625de84931656ec0
tree86633be5a815b19d3e7f72d535dad1d13c6df328
parentdd06af4f81be9e6d6b5e3a72357a51fa7205d856
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>
stdlib/Makefile
stdlib/bits/stdlib.h
stdlib/testmb.c