about summary refs log tree commit diff
path: root/arch/mipsn32/crt_arch.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2024-02-12 17:35:48 -0500
committerRich Felker <dalias@aerifal.cx>2024-02-16 09:33:03 -0500
commit4a16ddf53e7c634169d0a649782f8a724611f263 (patch)
treef473d01ff9b0d9e57516533e98846e87a15a1f71 /arch/mipsn32/crt_arch.h
parentcf91e9b3937dc354b702c8ac1b6135bd818154ba (diff)
downloadmusl-4a16ddf53e7c634169d0a649782f8a724611f263.tar.gz
musl-4a16ddf53e7c634169d0a649782f8a724611f263.tar.xz
musl-4a16ddf53e7c634169d0a649782f8a724611f263.zip
strftime: fix breakage in last change (uninitialized pointer access)
commit f47a5d400b8ffa26cfc5b345dbff52fec94ac7f3 overlooked that
strtoul was responsible for setting p to a const-laundered copy of the
format string pointer f, even in the case where there was no number to
parse. by making the call conditional on isdigit, that copy was lost.

the logic here is a mess and should be cleaned up, but for now, this
seems to be the least invasive change that undoes the breakage.
Diffstat (limited to 'arch/mipsn32/crt_arch.h')
0 files changed, 0 insertions, 0 deletions