1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-18 06:11:00 +00:00
serenity/Tests/LibC
Jelle Raaijmakers a44978b9b0 LibC: Fix %n conversion specifier in scanf() format
Also add a test to prevent this from happening again. There were two
bugs:

* The number of bytes just after processing the last value was written,
  instead of the number of bytes after skipping remaining whitespace.
  Confirmed by testing against GNU's `scanf()` since the man page
  leaves something to be desired.

* The number of bytes was written to the wrong variable argument; i.e.
  the first argument was overwritten.
2021-10-24 22:43:27 -07:00
..
CMakeLists.txt
TestIo.cpp
TestLibCDirEnt.cpp
TestLibCExec.cpp
TestLibCInodeWatcher.cpp
TestLibCMkTemp.cpp
TestLibCSetjmp.cpp
TestLibCString.cpp
TestLibCTime.cpp
TestMemmem.cpp
TestQsort.cpp
TestRealpath.cpp
TestScanf.cpp LibC: Fix %n conversion specifier in scanf() format 2021-10-24 22:43:27 -07:00
TestSearch.cpp
TestSnprintf.cpp
TestStackSmash.cpp
TestStrlcpy.cpp
TestStrtodAccuracy.cpp
TestWchar.cpp
TestWctype.cpp