pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/digest/files Allocate enough storage space to...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eac272ac8b47
branches:  trunk
changeset: 531643:eac272ac8b47
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Aug 03 17:10:07 2007 +0000

description:
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:

 pkgtools/digest/files/digest.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d0e176b3eaf9 -r eac272ac8b47 pkgtools/digest/files/digest.c
--- a/pkgtools/digest/files/digest.c    Fri Aug 03 17:05:07 2007 +0000
+++ b/pkgtools/digest/files/digest.c    Fri Aug 03 17:10:07 2007 +0000
@@ -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 @@
        { "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,



Home | Main Index | Thread Index | Old Index