[Toybox] fdlength bug

Achille Fouilleul achille.fouilleul at gadz.org
Wed Jul 31 06:11:09 PDT 2013


Hello,

fdlength in lib.c does not seem to work properly, I noticed this when
toybox's insmod sometimes failed mysteriously.
I have attached a patch that should fix the issue, along with a test case
that evidences the issue (use -std=c99).

Regards,
Achille
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130731/d9defd89/attachment-0005.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-fix-fdlength.diff
Type: application/octet-stream
Size: 1430 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130731/d9defd89/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdlength-test.c
Type: text/x-csrc
Size: 2510 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130731/d9defd89/attachment-0006.c>


More information about the Toybox mailing list