[Toybox] Unfixed bug in tail toy
Rob Landley
rob at landley.net
Wed Nov 5 11:18:38 PST 2014
On 11/05/14 12:15, luckboy at vp.pl wrote:
> I couldn't write e-mail because I fixed my project. I want inform about
> unfixed bug in tail
> toy. I sometime fixed this bug but my fix of this bug wasn't applied.
Ah, sorry. I spent the past 5 days alternating between toolchain work
for my day job and staring at "sed".
> Patch:
> https://github.com/luckboy/toyroot/blob/master/patch/toybox-0.5.0-tail-n-c.patch
Ok.
> 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
Indeed, reproduced here. Off to go look at it.
Thanks,
Rob
1415215118.0
More information about the Toybox
mailing list