[Toybox] Unfixed bug in tail toy

luckboy at vp.pl luckboy at vp.pl
Wed Nov 19 11:40:51 PST 2014


I see that bug in tail toy still is unfixed. Can you apply my fix of 
this bug?

Patch:
https://github.com/luckboy/toyroot/blob/master/patch/toybox-0.5.0-tail-n-c.patch 


This bug is is segmentation fault for 'tail -c 10' that read big data 
from stdin.
You can check occurrence of this bug by invoke commands:

dd if=/dev/urandom of=test.bin bs=1024 count=8
hexdump test.bin | ./toybox tail -c 10
Segmentation fault

Łukasz Szpakowski.


 1416426051.0


More information about the Toybox mailing list