mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
Fix #1392884 [Static buffer overflow in unrar InitCRC](https://bugs.launchpad.net/calibre/+bug/1392884)
This commit is contained in:
parent
bb758665a0
commit
94bf380db0
@ -30,7 +30,7 @@ void InitCRC()
|
|||||||
CRCTab[I]=crc_tables[0][I]=C;
|
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];
|
uint C=crc_tables[0][I];
|
||||||
for (uint J=1;J<8;J++)
|
for (uint J=1;J<8;J++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user