[hackers] [sbase] chown: fix out-of-bounds ((null) bad address error) || Hiltjo Posthuma
commit cd194d96ad543782599b4f7f2a4fb997484cf963
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Apr 18 19:46:02 2014 +0200
chown: fix out-of-bounds ((null) bad address error)
Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
diff --git a/chown.c b/chown.c
index 0bdd2e9..a36307d 100644
--- a/chown.c
+++ b/chown.c
_AT_@ -32,11 +32,13 @@ main(int argc, char *argv[])
default:
usage();
} ARGEND;
+
if(argc == 0)
usage();
owner = argv[0];
argv++;
+ argc--;
if((group = strchr(owner, ':')))
*group++ = '
Received on Fri Apr 18 2014 - 21:31:36 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 18 2014 - 21:36:48 CEST