When starting a wild cave encounter InitBlackWipe is called in ClockwiseWipe_TopRight with -1 for endY. This results in sTransitionData->tWipeCurrY ending up being -1 aswell, which is then used to access gScanlineEffectRegBuffers[0][sTransitionData->tWipeCurrY] leading to UB.
Description
When starting a wild cave encounter
InitBlackWipe
is called inClockwiseWipe_TopRight
with -1 forendY
. This results insTransitionData->tWipeCurrY
ending up being -1 aswell, which is then used to accessgScanlineEffectRegBuffers[0][sTransitionData->tWipeCurrY]
leading to UB.Discord contact info
.cawt