[Toybox] glitch in toy_init()

Ashwini Sharma ak.ashwini1981 at gmail.com
Mon May 5 04:45:39 PDT 2014


Hi Rob, list,

in __toy_init()__ function, the __toys__ variable is not reset
properly.
memset(&toys, 0, offsetof(struct toy_context, rebound));

reason: the __toys__ is set to __0__ only until __rebound__
is found. Due to the restructuring of __toy_context__, it is failing.

This causes an issue when __xexec()__ is called and has toys.optflags or
others are set.
May be need to put rebound at the bottom of struct again.

regards,
Ashwini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140505/65f81c93/attachment-0001.htm>


More information about the Toybox mailing list