[cc65] CC65 Memory Corruption

Date view Thread view Subject view

From: Tim Vanderhoek (hoek_at_FreeBSD.org)
Date: 2003-01-02 07:00:05


Hi,

I ran into some trouble with the cc65 compiler trying to access memory
that had already been free()'d.

I've attached a patch that is relative to version 2.8.0 of cc65.  I
took a look at the 2.9.0 sources and it looks like it should apply
without too much trouble to 2.9.0.  In 2.8.0 the function called
OptPtrLoad3() is now called OptPtrLoad2().  Other than that, the
patch should apply.

This problem causes cc65 to crash while compiling libsrc in any
environment where free() by default trashes memory that is freed.


-- 
If I could think of a two-line witty aphorism for you to remember
me by, this would definitely be it.



---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-01-02 07:00:27 CET