Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern fix the null pointer access bug when arg2 (c...
details: https://anonhg.NetBSD.org/src/rev/fefbaf207f43
branches: trunk
changeset: 486536:fefbaf207f43
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu May 25 01:22:41 2000 +0000
description:
fix the null pointer access bug when arg2 (char **endptr) == NULL
diffstat:
sys/lib/libkern/strtoul.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 88e2031a5375 -r fefbaf207f43 sys/lib/libkern/strtoul.c
--- a/sys/lib/libkern/strtoul.c Wed May 24 23:20:46 2000 +0000
+++ b/sys/lib/libkern/strtoul.c Thu May 25 01:22:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strtoul.c,v 1.4 1999/11/29 22:51:19 simonb Exp $ */
+/* $NetBSD: strtoul.c,v 1.5 2000/05/25 01:22:41 msaitoh Exp $ */
#include <sys/param.h>
#include <lib/libkern/libkern.h>
@@ -22,7 +22,7 @@
u_long maxdiv, maxrem;
if (s == NULL) {
- if (!ptr)
+ if (ptr != NULL)
*ptr = (char *)start;
return 0L;
}
Home |
Main Index |
Thread Index |
Old Index