[Mesa-dev] [PATCH] gallivm: Ignore unknown file type in non-debug builds.

Vinson Lee vlee at freedesktop.org
Tue Nov 19 23:19:04 PST 2013


Fixes "Uninitialized pointer read" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 37f7a56..6d8dc8c 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -2410,6 +2410,7 @@ emit_dump_file(struct lp_build_tgsi_soa_context *bld,
             res = LLVMBuildLoad(builder, reg_ptr, "");
          } else {
             assert(0);
+            continue;
          }
 
          emit_dump_reg(gallivm, file, index, chan, res);
-- 
1.8.3.2



More information about the mesa-dev mailing list