diff options
author | Rich Felker <dalias@aerifal.cx> | 2024-02-12 17:35:48 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-02-16 09:33:03 -0500 |
commit | 4a16ddf53e7c634169d0a649782f8a724611f263 (patch) | |
tree | f473d01ff9b0d9e57516533e98846e87a15a1f71 /arch/mipsn32/crt_arch.h | |
parent | cf91e9b3937dc354b702c8ac1b6135bd818154ba (diff) | |
download | musl-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