sys-apps/dog-1.7-r2: Segmentation Fault if running dog --strfry on a file with blank lines (for instance dog.c) Reproducible: Always Steps to Reproduce: 1. Emerge dog 2. Extract the dog-1.7.tar.gz file somewhere 3. dog --strfry dog.c Actual Results: It prints the strfry'd version of the file up until the first blank line, and then has a Segmentation Fault. Expected Results: It should have printed a blank line, and then continued on to the rest of the file. The problem seems to be that the GNU strfry function doesn't like zero length strings, so checking for that by applying the following patch seems to fix it. The upstream project website and emails don't seem to work anymore. --- dog.c.orig 2008-12-19 13:00:47.000000000 -0800 +++ dog.c 2008-12-19 13:01:14.000000000 -0800 @@ -560,7 +560,7 @@ // strfry() #if ALLOW_STRFRY - if (opt_strfry) { + if (opt_strfry && str_len > 0) { strfry(str); } #endif
Reassigning to shell-tools herd.
committed to -r3 thx. please file a stablereq bug in 30 days. I will forget.