projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad3d90f
)
Add an extra sanity check in parse_mode
author
Eric Andersen
<andersen@codepoet.org>
Fri, 1 Sep 2000 00:06:17 +0000
(
00:06
-0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 1 Sep 2000 00:06:17 +0000
(
00:06
-0000)
-Erik
utility.c
patch
|
blob
|
history
diff --git
a/utility.c
b/utility.c
index 911d84eaf0321924feb3284c54bf20f785079216..c8bd5737a68f6169d60981f4c4e602fab219adf8 100644
(file)
--- a/
utility.c
+++ b/
utility.c
@@
-743,6
+743,9
@@
extern int parse_mode(const char *s, mode_t * theMode)
char type;
char c;
+ if (s==NULL)
+ return (FALSE);
+
do {
for (;;) {
switch (c = *s++) {