Fix buffer overrun

Was a little too eager zeroing out sh_is_segment[]
This commit is contained in:
Raph Levien 2020-05-26 22:46:33 -07:00
parent dbcffb10db
commit e16f68d89d
2 changed files with 2 additions and 0 deletions

View file

@ -133,6 +133,8 @@ void main() {
for (uint i = 0; i < N_SLICE; i++) { for (uint i = 0; i < N_SLICE; i++) {
sh_bitmaps[i][th_ix] = 0; sh_bitmaps[i][th_ix] = 0;
sh_backdrop[i][th_ix] = 0; sh_backdrop[i][th_ix] = 0;
}
if (th_ix < N_SLICE) {
sh_is_segment[th_ix] = 0; sh_is_segment[th_ix] = 0;
} }

Binary file not shown.