aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-08-19 13:48:01 -0500
committerRob Landley <rob@landley.net>2018-08-19 13:48:01 -0500
commit2d32142041b644d2e218b1b630d2be3f6a761589 (patch)
tree32fd906c6ac96583a6f6e3b135fda060b93b10e1 /toys
parent6050532813c52e3bcfb5fe02de41b7d3c8d4bf70 (diff)
downloadtoybox-2d32142041b644d2e218b1b630d2be3f6a761589.tar.gz
Comment tweak.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/find.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/find.c b/toys/posix/find.c
index 762f89fc..faa63cae 100644
--- a/toys/posix/find.c
+++ b/toys/posix/find.c
@@ -500,8 +500,8 @@ static int do_find(struct dirtree *new)
aa->prev = (void *)1;
// Flush if the child's environment space gets too large.
- // An insanely long path (>2 gigs) could wrap the counter and
- // defeat this test, which could potentially trigger OOM killer.
+ // Linux caps individual arguments/variables at 131072 bytes,
+ // so this counter can't wrap.
if ((aa->plus += sizeof(char *)+strlen(name)+1) > TT.max_bytes) {
aa->plus = 1;
toys.exitval |= flush_exec(new, aa);