]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: strptime: make sure to fail on invalid input digits
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 21 Feb 2024 18:39:37 +0000 (19:39 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 21 Feb 2024 18:39:37 +0000 (19:39 +0100)
commit343a2a558153318b37de5fa6afc2d656739f0eed
tree3a89786f99b089e25bbfab5699152cb26c756ae2
parentacf176104fc5410bfec0635ed2c5a21971b9c938
Cygwin: strptime: make sure to fail on invalid input digits

conv_num returns NULL if the input is invalid, e. g., the
numbers are out of range.  However, the code fails to test
this in a lot of places.

Rather than adding checks all over the place, rename conv_num
to __conv_num and create a wrapper macro conv_num to perform
the task of error checking.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/libc/strptime.cc
This page took 0.031849 seconds and 5 git commands to generate.