[squeak-dev] Re: Bug in BytecodeGenerator>>#jump:if:
hmm at heeg.de
Sun Jun 22 14:46:58 UTC 2008
> nice wrote:
>> Hello André,
>> Good find!
>> I confirm only 4 bytes codes are reserved for longJumpIfFalse and 4
>> bytes code for longJumpIfTrue.
>> So this seems like a MAJOR bug. The kind of bug able to crash squeak
>> if you generate and execute a method with a jump > 1024 and < 2048...
> Just for the fun of it: how do you write non regression tests for such
> self shouldnt: [SmalltalkImage crash] ???
You'd probably compile a method which would trigger the bug and run it
through the simulator. The simulator would most likely generate some
kind of array out of bounds exception, but it can't crash the image.
More information about the Squeak-dev