On 11/05/14 12:15, [email protected] 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
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to