Use 32bit instead of 16 bit variable to avoid overflow.

This commit is contained in:
is 2001-02-13 12:29:05 +00:00
parent dd09712ae5
commit 81c9ac3e1a
4 changed files with 28 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: patch-sum,v 1.22 2000/10/19 02:02:57 hubertf Exp $
# $NetBSD: patch-sum,v 1.23 2001/02/13 12:29:05 is Exp $
MD5 (patch-aa) = 39a4c82d2b89aae61df69a50f7aaa813
MD5 (patch-ab) = 14aab959d372b529a72ef5770aae9b27
@ -37,4 +37,5 @@ MD5 (patch-bk) = e1d08202e611aa0ca82b6330af862c77
MD5 (patch-bl) = 82a4d98c20e38fa515e94df98d99104b
MD5 (patch-bn) = b952c31778b8d95772234c21c1ede892
MD5 (patch-br) = 73c8bfe4215d67e9803b338cc5169b1f
MD5 (patch-ca) = 327e177c9eaa6c6e568dae98bbd086ff
MD5 (patch-la) = 991af4529826b25ae727615ce835f51d

View file

@ -0,0 +1,11 @@
--- deattack.c.orig Wed May 12 13:19:25 1999
+++ deattack.c Tue Feb 13 11:23:07 2001
@@ -79,7 +79,7 @@
detect_attack(unsigned char *buf, word32 len, unsigned char *IV)
{
static word16 *h = (word16 *) NULL;
- static word16 n = HASH_MINSIZE / HASH_ENTRYSIZE;
+ static word32 n = HASH_MINSIZE / HASH_ENTRYSIZE;
register word32 i, j;
word32 l;
register unsigned char *c;

View file

@ -1,4 +1,4 @@
# $NetBSD: patch-sum,v 1.2 2000/04/23 19:17:29 thorpej Exp $
# $NetBSD: patch-sum,v 1.3 2001/02/13 12:29:06 is Exp $
MD5 (patch-aa) = 39a4c82d2b89aae61df69a50f7aaa813
MD5 (patch-ab) = 36dc0eb7feba0554674242b39082a09b
@ -43,4 +43,5 @@ MD5 (patch-bo) = 9db4ecae0a7bd795d9eeefb7c3386f73
MD5 (patch-bp) = b519463adf568f2ca2f6720a2055289e
MD5 (patch-bq) = 2ac652937d1957d3d1d050516938c76c
MD5 (patch-br) = 73c8bfe4215d67e9803b338cc5169b1f
MD5 (patch-ca) = ff0e0776bee7b46db68894b54e30d0eb
MD5 (patch-la) = 3584ccc61783fe0758d82b5ab82a658e

View file

@ -0,0 +1,13 @@
$NetBSD: patch-ca,v 1.1 2001/02/13 12:29:06 is Exp $
--- deattack.c.orig Wed May 12 13:19:25 1999
+++ deattack.c Tue Feb 13 11:23:07 2001
@@ -79,7 +79,7 @@
detect_attack(unsigned char *buf, word32 len, unsigned char *IV)
{
static word16 *h = (word16 *) NULL;
- static word16 n = HASH_MINSIZE / HASH_ENTRYSIZE;
+ static word32 n = HASH_MINSIZE / HASH_ENTRYSIZE;
register word32 i, j;
word32 l;
register unsigned char *c;