mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
The sample-based oscillators converted the samplepos to an integer and did samplepos < loop_end comparison to check if we are past looping. Unfortunately, the < comparison was done in signed math. Normally, this should never happen, but if the x87 FPU stack overflowed exactly at right position, we then got 0x80000000 in samplepos, which is equal to -2147483648. Thus, we considered that sample is not looping and read the sample table at position -2147483648, well out of bound. TL;DR changing jl to jb makes sure we always wrap within to sample table, no matter what. Fixes #149. |
||
---|---|---|
.. | ||
bridge | ||
templates | ||
compiler_macros.go | ||
compiler.go | ||
featureset_macros.go | ||
patterns_test.go | ||
patterns.go | ||
song_macros.go | ||
wasm_macros.go | ||
x86_macros.go |