Re: [cc65] TGI preview

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-11-19 21:48:09
On Thu, Nov 12, 2009 at 11:27:02PM +0100, Ullrich von Bassewitz wrote:
> It's called a "preview" because new features are there, but they may be buggy,
> big and slow. Especially the line clipper seems to be broken, so beware when
> compiling the program for other platforms.

As I've found out, it was not the line clipper that was buggy, but the
program. It passed line coordinates near INT_MAX to the clipper, which behaved
as designed (which means, it didn't handle the integer overflow and went into
an endless loop).

Now the question is how to handle this stuff. Having the line clipper hang is
ugly, but handling (or checking for) integer overflows withing the line
clipper eats memory and performance. Any votes?

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Nov 19 21:48:16 2009

This archive was generated by hypermail 2.1.8 : 2009-11-19 21:48:21 CET