News for hackers. Stuff that matters.
Re:Arbitrary file write vulnerability in GNU gzip's zgrep ut... by xarope on Monday April 18, 2022 @07:59PM (#31078263)
My epiphany was using find | xargs and realizing I need -print0 for the former and -0 for the latter to handle special characters. Then I realized all my previous bash scripts were WRONG...
Re:Arbitrary file write vulnerability in GNU gzip's zgrep ut... by aaaaaaaaaaab on Monday April 18, 2022 @08:11PM (#31078343)
Zero-delimited versions of common bash tools/idioms:

  xargs -0

  find ... -print0

  sort -z

  while IFS= read -r -d '' var; do ...; done

  env -0

  printf -- '%s\0' *
Re:Arbitrary file write vulnerability in GNU gzip's zgrep ut... by nieve on Tuesday April 19, 2022 @02:12AM (#31080135)
Don't you mean ascii null, not zero?
Re:Arbitrary file write vulnerability in GNU gzip's zgrep ut... by kevin_thibedeau on Tuesday April 19, 2022 @02:45AM (#31080269)
Don't you mean NUL, not null?