Fix segmentation fault of digest(1) on Linux when directory
is passed as an argument or when read error occurs. Update version to 20111104.
This commit is contained in:
parent
9e3d3eae4c
commit
4e86190347
5 changed files with 1666 additions and 2832 deletions
|
@ -88,6 +88,9 @@
|
|||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#undef PACKAGE_URL
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
|
|
4479
pkgtools/digest/files/configure
vendored
4479
pkgtools/digest/files/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,7 @@
|
|||
dnl $Id: configure.ac,v 1.16 2009/05/09 01:45:10 joerg Exp $
|
||||
dnl $Id: configure.ac,v 1.17 2011/11/04 23:58:14 cheusov Exp $
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_PREREQ(2.57)
|
||||
AC_INIT([nbsd-digest],[20080510],[agc@netbsd.org])
|
||||
AC_INIT([nbsd-digest],[20111104],[agc@netbsd.org])
|
||||
AC_CONFIG_SRCDIR([digest.c])
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
AC_ARG_PROGRAM
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: md5hl.c,v 1.6 2007/09/21 18:44:37 joerg Exp $ */
|
||||
/* $NetBSD: md5hl.c,v 1.7 2011/11/04 23:58:14 cheusov Exp $ */
|
||||
|
||||
/*
|
||||
* Written by Jason R. Thorpe <thorpej@netbsd.org>, April 29, 1997.
|
||||
|
@ -18,7 +18,7 @@
|
|||
#define _DIAGASSERT(cond) assert(cond)
|
||||
#endif
|
||||
|
||||
/* $NetBSD: md5hl.c,v 1.6 2007/09/21 18:44:37 joerg Exp $ */
|
||||
/* $NetBSD: md5hl.c,v 1.7 2011/11/04 23:58:14 cheusov Exp $ */
|
||||
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
|
@ -84,7 +84,7 @@ MDNAME(File)(filename, buf)
|
|||
unsigned char buffer[BUFSIZ];
|
||||
MDNAME(_CTX) ctx;
|
||||
int f, j;
|
||||
size_t i;
|
||||
ssize_t i;
|
||||
|
||||
_DIAGASSERT(filename != 0);
|
||||
/* buf may be NULL */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sha1hl.c,v 1.7 2007/09/21 18:44:37 joerg Exp $ */
|
||||
/* $NetBSD: sha1hl.c,v 1.8 2011/11/04 23:58:14 cheusov Exp $ */
|
||||
|
||||
/* sha1hl.c
|
||||
* ----------------------------------------------------------------------------
|
||||
|
@ -33,7 +33,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: sha1hl.c,v 1.7 2007/09/21 18:44:37 joerg Exp $");
|
||||
__RCSID("$NetBSD: sha1hl.c,v 1.8 2011/11/04 23:58:14 cheusov Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#ifndef _DIAGASSERT
|
||||
|
@ -70,7 +70,7 @@ SHA1File(char *filename, char *buf)
|
|||
uint8_t buffer[BUFSIZ];
|
||||
SHA1_CTX ctx;
|
||||
int fd, oerrno;
|
||||
size_t num;
|
||||
ssize_t num;
|
||||
|
||||
_DIAGASSERT(filename != NULL);
|
||||
/* XXX: buf may be NULL ? */
|
||||
|
|
Loading…
Reference in a new issue