diff options
author | tnn <tnn@pkgsrc.org> | 2007-08-03 17:10:07 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2007-08-03 17:10:07 +0000 |
commit | 155170f318d5e43e4026be17930b2c6877fff4e5 (patch) | |
tree | 5cf7ae7231529141aae5f20d1dd6abf3b915656d /pkgtools | |
parent | b473eacf73c15d30584898f6710801a5044c4735 (diff) | |
download | pkgsrc-155170f318d5e43e4026be17930b2c6877fff4e5.tar.gz |
Allocate enough storage space to hold a tiger hash. Corrects a
segfault caused by writing past the end of the buffer.
XXX how do I bump the version of this package?
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/digest/files/digest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/digest/files/digest.c b/pkgtools/digest/files/digest.c index 7de17555c8b..1a5fb4c198a 100644 --- a/pkgtools/digest/files/digest.c +++ b/pkgtools/digest/files/digest.c @@ -1,4 +1,4 @@ -/* $NetBSD: digest.c,v 1.12 2007/07/03 18:54:03 joerg Exp $ */ +/* $NetBSD: digest.c,v 1.13 2007/08/03 17:10:07 tnn Exp $ */ /* * Copyright (c) 2001-2005 Alistair G. Crooks. All rights reserved. @@ -37,7 +37,7 @@ #ifndef lint __COPYRIGHT("@(#) Copyright (c) 2001-2005 \ The NetBSD Foundation, Inc. All rights reserved."); -__RCSID("$NetBSD: digest.c,v 1.12 2007/07/03 18:54:03 joerg Exp $"); +__RCSID("$NetBSD: digest.c,v 1.13 2007/08/03 17:10:07 tnn Exp $"); #endif @@ -105,7 +105,7 @@ static alg_t algorithms[] = { { "SHA512", SHA512_DIGEST_LENGTH, (HASH_init) SHA512_Init, (HASH_update) SHA512_Update, (HASH_end) SHA512_End, (HASH_file) SHA512_File }, - { "TIGER", 20, + { "TIGER", 24, (HASH_init) TIGERInit, (HASH_update) TIGERUpdate, (HASH_end) TIGEREnd, (HASH_file) TIGERFile }, { "WHIRLPOOL", WHIRLPOOL_DIGEST_BYTES, |