diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2021-10-25 00:23:49 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-10-24 22:43:27 -0700 |
commit | a44978b9b005ed0b26774cae93816e90cbbd941d (patch) | |
tree | e710c381bf36c7954711e30bcf97c24571cee043 /Ports/m4/package.sh | |
parent | 00f36fc5aedf15be19d1a458dabaa6714a21d8d8 (diff) | |
download | serenity-a44978b9b005ed0b26774cae93816e90cbbd941d.zip |
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.
Diffstat (limited to 'Ports/m4/package.sh')
0 files changed, 0 insertions, 0 deletions