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:
8610f91
)
Fix a buffer overflow found by Gerardo Puga <gpuga@gioia.ing.unlp.edu.ar>
author
Eric Andersen
<andersen@codepoet.org>
Thu, 6 Jun 2002 13:33:01 +0000
(13:33 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Thu, 6 Jun 2002 13:33:01 +0000
(13:33 -0000)
-Erik
shell/lash.c
patch
|
blob
|
history
diff --git
a/shell/lash.c
b/shell/lash.c
index 53377d4ed4531960b63f39a600f3edbf5c84fed6..16401225edf0ea4ac09ed52babb007ab44415f06 100644
(file)
--- a/
shell/lash.c
+++ b/
shell/lash.c
@@
-416,7
+416,7
@@
static int builtin_read(struct child_prog *child)
if (child->argv[1]) {
/* argument (VAR) given: put "VAR=" into buffer */
- s
trcpy(string, child->argv[1]
);
+ s
afe_strncpy(string, child->argv[1], MAX_READ-1
);
len = strlen(string);
string[len++] = '=';
string[len] = '\0';