zelda3 icon indicating copy to clipboard operation
zelda3 copied to clipboard

TCC build crash when carrying items for an unusually long time

Open FitzRoyX opened this issue 3 years ago • 0 comments

Describe your bug here. And how to reproduce it.

Halfway to taking the flopping fish all the way back to the kaka merchant, I got a crash. It only happens in TCC builds and I was afraid it might be another compiler bug. However, the error message:

f-1

Points to this code:

      // todo: This is an OOB read triggered when lifting for too long
      some_animation_timer = kLiftTab2[++some_animation_timer_steps];
      assert(some_animation_timer_steps < arraysize(kLiftTab2));
      if (some_animation_timer_steps != 3)
        return;

What is your build target?

Windows

FitzRoyX avatar Nov 03 '22 17:11 FitzRoyX