Here's a chunk of patches fixing various bugs in libpayload. Content-Disposition: inline; filename=fix-evil-printf-bug.patch
This was causing the returned counter value to be one more then it should be when printing a single character.
Signed-off-by: Jordan Crouse jordan.crouse@amd.com Index: libpayload/libc/printf.c =================================================================== --- libpayload.orig/libc/printf.c 2008-04-24 11:44:17.000000000 -0600 +++ libpayload/libc/printf.c 2008-04-24 11:45:40.000000000 -0600 @@ -156,7 +156,7 @@ ++counter; }
- return ++counter; + return counter; }
/**