printf: fix an out-of-bounds memory access
authorPádraig Brady <P@draigBrady.com>
Tue, 17 May 2011 23:01:55 +0000 (00:01 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 18 May 2011 06:33:04 +0000 (07:33 +0100)
commitbeaa94931345271fd288480d7ea952f9551ef991
tree8ba8a455a5ed0d95d310f40ae48569c847404f3d
parent50ca38e523b5434fd6d7b98ed87a310179e9967a
printf: fix an out-of-bounds memory access

* src/printf.c (STRTOX): Don't access memory after a
string containing a single quote character.
* tests/misc/printf: Add tests for various combinations
of single quote characters combined with a numeric format.
* THANKS.in: Add bug reporter.
* NEWS: Mention the fix.

Reported-by: Paul Marinescu <paul.marinescu@imperial.ac.uk>
NEWS
THANKS.in
src/printf.c
tests/misc/printf