Revision: 77859
          http://sourceforge.net/p/brlcad/code/77859
Author:   starseeker
Date:     2020-12-02 01:14:10 +0000 (Wed, 02 Dec 2020)
Log Message:
-----------
Before we unpack last, make sure it's not null

Modified Paths:
--------------
    brlcad/trunk/src/libbu/tbl.c

Modified: brlcad/trunk/src/libbu/tbl.c
===================================================================
--- brlcad/trunk/src/libbu/tbl.c        2020-12-02 00:03:23 UTC (rev 77858)
+++ brlcad/trunk/src/libbu/tbl.c        2020-12-02 01:14:10 UTC (rev 77859)
@@ -236,8 +236,15 @@
        }
     }
 
+    if (!last)
+       return tbl;
+
     zeros = 0;
     last += 2;
+
+    if (!last)
+       return tbl;
+
     while ((*last == '\0' || *last == '|')) {
        zeros++;
        last++;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to