[Toybox] [Patches] - Some more static analysis fixes

Ashwini Sharma ak.ashwini1981 at gmail.com
Mon Oct 6 22:50:07 PDT 2014


Hi Rob, List,

Attached are few more static analysis fixes. This includes issues like
resource leaks, logical dead codes etc...

chgrp.c: Issue is in case when CFG_FREE and verbose mode enabled. Garbage
output was there.

comm.c: loop error

id.c: single build issue for OLD_TOYs, same issue is there with some other,
e.g. __mv__

mountpoint.c : logically dead code, as __temp __ is initialized with 1

Do have a look, your inputs are welcome.

regards,
Ashwini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chgrp.c.patch
Type: application/octet-stream
Size: 569 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comm.c.patch
Type: application/octet-stream
Size: 362 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdisk.c.patch
Type: application/octet-stream
Size: 436 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getty.c.patch
Type: application/octet-stream
Size: 355 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: id.c.patch
Type: application/octet-stream
Size: 473 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insmod.c.patch
Type: application/octet-stream
Size: 446 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: losetup.c.patch
Type: application/octet-stream
Size: 605 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modprobe.c.patch
Type: application/octet-stream
Size: 848 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netcat.c.patch
Type: application/octet-stream
Size: 418 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nohup.c.patch
Type: application/octet-stream
Size: 398 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tftpd.c.patch
Type: application/octet-stream
Size: 317 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xwrap.c.patch
Type: application/octet-stream
Size: 298 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141007/4155ba1d/attachment-0011.obj>


More information about the Toybox mailing list