the read-overflow code-path wasn't reporting as an error

(since 'ok' was '1' by default)
(cherry picked from commit fe5eb4ffae74ff493e92fb5cd9a7a1625a113a7b)
This commit is contained in:
Pascal Massimino 2012-02-24 07:59:44 +00:00 committed by James Zern
parent 1db888ba40
commit b3bf8fe7a1

View File

@ -358,7 +358,7 @@ int EncodeAlpha(const uint8_t* data, int width, int height, int stride,
static int DecompressZlibTCoder(VP8BitReader* const br, int width,
uint8_t* output, size_t output_size) {
int ok = 1;
int ok = 0;
const size_t MAX_DIST = 3 * width;
const size_t MAX_LEN = 2 * width;
TCoder* const coder = TCoderNew(MAX_SYMBOLS);