From 94bf380db0b411be8920e60485aeef7fc4059916 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Nov 2014 08:53:47 +0530 Subject: [PATCH] Fix #1392884 [Static buffer overflow in unrar InitCRC](https://bugs.launchpad.net/calibre/+bug/1392884) --- src/unrar/crc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unrar/crc.cpp b/src/unrar/crc.cpp index 26590fda19..548de1669d 100644 --- a/src/unrar/crc.cpp +++ b/src/unrar/crc.cpp @@ -30,7 +30,7 @@ void InitCRC() CRCTab[I]=crc_tables[0][I]=C; } - for (uint I=0;I<=256;I++) // Build additional lookup tables. + for (uint I=0;I<256;I++) // Build additional lookup tables. { uint C=crc_tables[0][I]; for (uint J=1;J<8;J++)