llvmpipe: added a new assertion as a hint to Coverity
authorBrian Paul <brianp@vmware.com>
Wed, 5 May 2010 14:22:10 +0000 (08:22 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 5 May 2010 14:22:12 +0000 (08:22 -0600)
Looks like coverity found a false positive for an out of bounds array write.

src/gallium/drivers/llvmpipe/lp_scene.h

index 7714748dafff232c41049c6fdc17bdc1a9f91433..22d619fdbc341de0a728de937414767345575761 100644 (file)
@@ -274,6 +274,7 @@ lp_scene_bin_command( struct lp_scene *scene,
          /* out of memory - simply ignore this command (for now) */
          return;
       }
+      assert(tail->count == 0);
    }
 
    {