[owl-users] Memset(x,y,0) bugs in Owl-3.0

From: Silvio Cesare <silvio.cesare_at_private>
Date: Sat, 5 Feb 2011 12:49:23 +1100
I did a scan of the Owl-3.0 sources to find places where memset(x,y,0) was
used when it should have been memset(x,0,y).

The results are
https://github.com/silviocesare/Automated-Audits/blob/master/Owl-3.0/Memset0Count/08-01-2011/Results-->

./rpm-4.2/db/btree/bt_open.c:           memset(buf, dbp->pgsize, 0);
./rpm-4.2/db/hash/hash_open.c:          memset(buf, dbp->pgsize, 0);
./slang-1.4.6/demo/pager.c:   memset ((char *) line, sizeof
(File_Line_Type), 0);

--
Silvio Cesare
Deakin University
Received on Fri Feb 04 2011 - 17:49:23 PST

This archive was generated by hypermail 2.2.0 : Fri Feb 04 2011 - 20:53:19 PST