Re: [cc65] printf: oops :-)

From: Greg King <greg.king51verizon.net>
Date: 2013-07-28 17:23:50
From: "Ullrich von Bassewitz"; on Sunday, July 21, 2013; at 6:50 PM -0400
>
> The result is what made me say "oops": The program tests 377 different
> conversions. The CC65 printf() implementation fails in 144 cases.
> In 31 of those cases, it fails so badly that it outputs screens of 
> garbage;
> or, even crashes the machine.

After the causes of those crashes are fixed, "only" 117 tests fail.  ;-)

(The first two crashes are caused by buffer overruns; negative numbers make 
huge unsigned numbers.  The third one is a byte that's left on the CPU 
stack; so, the next RTS gets a bad address.)

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jul 28 17:24:26 2013

This archive was generated by hypermail 2.1.8 : 2013-07-28 17:24:29 CEST