From 4458d2ca987973598c77c54675768e5a442248d6 Mon Sep 17 00:00:00 2001 From: vvaltman Date: Wed, 27 Aug 2014 19:40:04 +0400 Subject: [PATCH] fixed bug in crc32 --- crc32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crc32.c b/crc32.c index bd6e0ba..fd62b20 100644 --- a/crc32.c +++ b/crc32.c @@ -471,6 +471,7 @@ static void gf32_matrix_square (unsigned *square, unsigned *matrix) { } unsigned compute_crc32_combine (unsigned crc1, unsigned crc2, int len2) { + assert (len2 < (1 << 29)); static int power_buf_initialized = 0; static unsigned power_buf[1024]; int n;