[Toybox] find crash
enh
enh at google.com
Wed Sep 9 19:59:41 PDT 2015
mentioned on https://android-review.googlesource.com/#/c/170020/:
touch file1
touch file2
touch file2
./toybox find . -mindepth 1 -newer file1 -exec ls {} ;
Program terminated with signal SIGSEGV, Segmentation fault.
#0 do_find (new=0x133a190) at toys/posix/find.c:179
179 if (dl->prev == (void *)1 || !new->parent)
the "-mindepth 1" appears to be a necessary condition.
(really they wanted to use '+' but found that wasn't working, and hit
this crash when investigating.)
(but really they wanted -delete, and to not have to deal with -exec at all.)
--
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
1441853981.0
More information about the Toybox
mailing list