Revision: 48749 http://brlcad.svn.sourceforge.net/brlcad/?rev=48749&view=rev Author: r_weiss Date: 2012-01-13 17:30:33 +0000 (Fri, 13 Jan 2012) Log Message: ----------- Updated file 'arb8.c' and 'struct arb_specific'. This change was to correct a coverity error 'overrun static' in function 'rt_arb_vshot'. CID 424.
Modified Paths: -------------- brlcad/trunk/src/librt/primitives/arb8/arb8.c Modified: brlcad/trunk/src/librt/primitives/arb8/arb8.c =================================================================== --- brlcad/trunk/src/librt/primitives/arb8/arb8.c 2012-01-13 17:27:22 UTC (rev 48748) +++ brlcad/trunk/src/librt/primitives/arb8/arb8.c 2012-01-13 17:30:33 UTC (rev 48749) @@ -88,7 +88,7 @@ struct arb_specific { int arb_nmfaces; /* number of faces */ struct oface *arb_opt; /* pointer to optional info */ - struct aface arb_face[4]; /* May really be up to [6] faces */ + struct aface arb_face[6]; /* May really be up to [6] faces */ }; @@ -1244,7 +1244,7 @@ BU_CK_EXTERNAL(ep); ep->ext_nbytes = sizeof(union record); - ep->ext_buf = (genptr_t)bu_calloc(1, ep->ext_nbytes, "arb external"); + ep->ext_buf = (genptr_t)bu_malloc(ep->ext_nbytes, "arb external"); rec = (union record *)ep->ext_buf; rec->s.s_id = ID_SOLID; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits