From b3bf8fe7a1422ac4144b82ed83f85873cef3d99e Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Fri, 24 Feb 2012 07:59:44 +0000 Subject: [PATCH] the read-overflow code-path wasn't reporting as an error (since 'ok' was '1' by default) (cherry picked from commit fe5eb4ffae74ff493e92fb5cd9a7a1625a113a7b) --- src/utils/alpha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/alpha.c b/src/utils/alpha.c index 605177b5..e6d85f0d 100644 --- a/src/utils/alpha.c +++ b/src/utils/alpha.c @@ -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);