On 05/05/2018 06:19 PM, enh wrote:
> AFK, but I'm using glibc too, from Debian testing. 

I found it, the stdin case is using the stat.length value to see how much to
read but never did the stat, so it's uninitialized stack crap. When it's zero...

Oops. Oddly enough, the compiler did not complain!

Needs a design tweak to figure out what the length _should_ be in this case.
Maybe that read-into-memory suggestion with like a 256k cap or something?
Working on it...

Rob
_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to