Mesa (master): llvmpipe: added a new assertion as a hint to Coverity

Brian Paul brianp at kemper.freedesktop.org
Wed May 5 14:22:43 UTC 2010


Module: Mesa
Branch: master
Commit: 5c2f6a3e9ff933444e0d0b2e844702dd91cc2ce2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c2f6a3e9ff933444e0d0b2e844702dd91cc2ce2

Author: Brian Paul <brianp at vmware.com>
Date:   Wed May  5 08:22:10 2010 -0600

llvmpipe: added a new assertion as a hint to Coverity

Looks like coverity found a false positive for an out of bounds array write.

---

 src/gallium/drivers/llvmpipe/lp_scene.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_scene.h b/src/gallium/drivers/llvmpipe/lp_scene.h
index 7714748..22d619f 100644
--- a/src/gallium/drivers/llvmpipe/lp_scene.h
+++ b/src/gallium/drivers/llvmpipe/lp_scene.h
@@ -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);
    }
 
    {




More information about the mesa-commit mailing list