Re:Bzip3 – A better and stronger spiritual successor to bzip2
by palaiologos on Tuesday May 10, 2022 @01:30PM
(#31329824)
lies. not specifying -e displays an error message:
you can use bzip3 as a filter:
and using "-j6" is simply being unable to read the help page.
[ Parent
| on HN ]
Re:Bzip3 – A better and stronger spiritual successor to bzip2
by eesmith on Tuesday May 10, 2022 @02:54PM
(#31331039)
The code has, at https://github.com/kspalaiologos/bzip3/blob/bf2f0e02fd59f4c4... :
} else if (argv[i][1] == 'j') {
workers = atoi(argv[i + 1]);
i++;
If the last argument is "-j6" then this will read past the end of the allocated argv strings and try to do atoi(NULL): % ./bzip3 -j3 < README.md
Segmentation fault
"-j6" is standard getopt() behavior, and the default expected behavior from Unix/POSIX systems.
Re:Bzip3 – A better and stronger spiritual successor to bzip2
by ttybird2 on Tuesday May 10, 2022 @03:03PM
(#31331176)
They are not disputing that - they actually acknowledged it. Instead they are disputing that omitting -e will lead to a crash.
Re:Bzip3 – A better and stronger spiritual successor to bzip2
by linsomniac on Wednesday May 11, 2022 @09:12AM
(#31339443)
You're right, what I thought was encoding/filter SEGVs were the bug in handling "-j6".