cosmopolitan/test/libc
Gautham a6f65eea7c
Scan fixed-width integers in vcscanf (#424)
When a format string like %2x is provided, the width parameter was read
correctly as 2, but it was not used when decoding the number from the
input string (ie instead of reading 2 characters from the input string,
vcscanf read all the characters).

This change uses the value of width within the number decoding loop to
read fixed number of digits correctly. if width is zero (not provided),
the default of width is set as bits.

Fixes #423
2022-06-26 21:27:07 -07:00
..
alg Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
bits Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
calls Perform some code cleanup 2022-06-23 10:21:07 -07:00
dns Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
fmt Scan fixed-width integers in vcscanf (#424) 2022-06-26 21:27:07 -07:00
intrin Make fixes and improvements 2022-06-25 21:09:09 -07:00
log Make more fixes and improvements 2022-06-13 11:02:13 -07:00
mem Make some quick fixes and cleanup 2022-06-26 02:58:36 -07:00
nexgen32e Perform some code cleanup 2022-06-23 10:21:07 -07:00
rand Make more fixes and improvements 2022-06-13 11:02:13 -07:00
release Fixup and polish chibicc some more 2022-06-20 04:32:25 -07:00
runtime Fix libunwind stubs 2022-06-26 05:29:25 -07:00
sock Make fixes and improvements 2022-06-25 21:09:09 -07:00
stdio Make improvements to locking 2022-06-19 01:30:12 -07:00
str Make fixes and improvements 2022-06-25 21:09:09 -07:00
thread Add pthread tls api 2022-06-22 07:08:17 -07:00
time Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
tinymath Scrub double-conversion and add quick wrapper 2022-06-26 05:03:25 -07:00
unicode Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
x Make more fixes and improvements 2022-06-13 11:02:13 -07:00
xed Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
test.mk Fix bugs and make improvements 2022-04-20 10:05:34 -07:00