Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/iscsi/dist/src/lib Fix segfault when read(2) re...



details:   https://anonhg.NetBSD.org/src/rev/bbb2bf30c9d2
branches:  trunk
changeset: 770975:bbb2bf30c9d2
user:      cheusov <cheusov%NetBSD.org@localhost>
date:      Sat Nov 05 00:17:19 2011 +0000

description:
Fix segfault when read(2) returns -1

diffstat:

 external/bsd/iscsi/dist/src/lib/md5hl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 85d77f547ced -r bbb2bf30c9d2 external/bsd/iscsi/dist/src/lib/md5hl.c
--- a/external/bsd/iscsi/dist/src/lib/md5hl.c   Fri Nov 04 17:53:51 2011 +0000
+++ b/external/bsd/iscsi/dist/src/lib/md5hl.c   Sat Nov 05 00:17:19 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md5hl.c,v 1.2 2009/06/30 02:44:52 agc Exp $    */
+/*     $NetBSD: md5hl.c,v 1.3 2011/11/05 00:17:19 cheusov Exp $        */
 
 /*
  * Written by Jason R. Thorpe <thorpej%netbsd.org@localhost>, April 29, 1997.
@@ -18,7 +18,7 @@
 #define _DIAGASSERT(cond)      assert(cond)
 #endif
 
-/*     $NetBSD: md5hl.c,v 1.2 2009/06/30 02:44:52 agc Exp $    */
+/*     $NetBSD: md5hl.c,v 1.3 2011/11/05 00:17:19 cheusov Exp $        */
 
 /*
  * ----------------------------------------------------------------------------
@@ -84,7 +84,7 @@
        unsigned char buffer[BUFSIZ];
        MDNAME(_CTX) ctx;
        int f, j;
-       size_t i;
+       ssize_t i;
 
        _DIAGASSERT(filename != 0);
        /* buf may be NULL */



Home | Main Index | Thread Index | Old Index