Revision: 42086
http://brlcad.svn.sourceforge.net/brlcad/?rev=42086&view=rev
Author: brlcad
Date: 2011-01-11 21:20:31 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
off_t's may be signed, accommodate.
Modified Paths:
--------------
brlcad/trunk/src/librt/db_path.c
Modified: brlcad/trunk/src/librt/db_path.c
===================================================================
--- brlcad/trunk/src/librt/db_path.c 2011-01-11 21:17:18 UTC (rev 42085)
+++ brlcad/trunk/src/librt/db_path.c 2011-01-11 21:20:31 UTC (rev 42086)
@@ -157,7 +157,7 @@
RT_CK_FULL_PATH(newp);
RT_CK_FULL_PATH(oldp);
- if (start > oldp->fp_len-1)
+ if (start < 0 || (size_t)start > oldp->fp_len-1)
bu_bomb("db_dup_path_tail: start offset out of range\n");
newp->fp_maxlen = newp->fp_len = oldp->fp_len - start;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits