Zip/jzip bug in set_colour_attribute?


15 Nov 1995 10:50:31 -0800

Has anyone tried playing Beyond Zork on jzip version 2.0.1f?
It always crashes on my machine with the error:
"Fatal error: Bad colour! (PC = 3ad12)".

I popped jzip into gdb, to see what was going on, and found this (applies
to zip 2.0 as well, although it doesn't crash it for some reason):

set_colour is called with two arguments, operand[0] (foreground) and
operand[1] (background).

The values of operand[0-1] are within the limits of the color scheme (1-9),
but as soon as they are passed to set_colour_attribute, background takes a
randomly high value. It may not be random, I haven't played around enough
yet.

This happens in both zip and jzip, although only jzip (correctly) crashes
when it sees an out-of-range value.

Can anyone duplicate this error, or is my machine posessed?

-Josh