ref: 568326bfe2c35aef831b1975fa30f80d8a79508a
parent: 8f02c482ba22074e8200ee89b7986eeb8f2f3b8f
author: Gregory Maxwell <[email protected]>
date: Sat Jan 22 15:16:43 EST 2011
Prevent out of bounds access to collapse_masks.
--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -1186,7 +1186,7 @@
x_cm = y_cm = 0;
fold_i = fold_start; do {
x_cm |= collapse_masks[fold_i*C+0];
- y_cm |= collapse_masks[fold_i*C+1];
+ y_cm |= collapse_masks[fold_i*C+C-1];
} while (++fold_i<fold_end);
}
/* Otherwise, we'll be using the LCG to fold, so all blocks will (almost