[bug #62621] xargs/find: buildcmd incorrectly sizes argv and envp

2022-06-13 Thread Thomas Hurst
URL: Summary: xargs/find: buildcmd incorrectly sizes argv and envp Project: findutils Submitter: freaky Submitted: Mon 13 Jun 2022 01:24:21 PM UTC Category: xargs

[bug #62622] E2BIG misbehaviour

2022-06-13 Thread Thomas Hurst
URL: Summary: E2BIG misbehaviour Project: findutils Submitter: freaky Submitted: Mon 13 Jun 2022 01:34:18 PM UTC Category: xargs Severity: 3 - Normal

[bug #62622] E2BIG misbehaviour

2022-06-13 Thread Tavian Barnes
Follow-up Comment #1, bug #62622 (project findutils): I noticed this a while ago but forgot to report it: https://github.com/sharkdp/argmax/issues/1#issuecomment-972035652 `xargs` is trying to find the real limit with binary search: https://git.savannah.gnu.org/cgit/findutils.git/tree/lib/buildcm

[bug #62621] xargs/find: buildcmd incorrectly sizes argv and envp

2022-06-13 Thread Tavian Barnes
Follow-up Comment #1, bug #62621 (project findutils): Another thing: hypothetically, `xargs` could be built as a 32-bit binary, launching a 64-bit binary. In that case, `sizeof(void *)` is not enough, since `xargs` will think it's 4 while the kernel will think it's 8. __