projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df20c39
)
glsl: Return NULL on _slan_gen_asm error path on non-debug builds.
author
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 08:58:36 +0000
(
00:58
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 08:58:36 +0000
(
00:58
-0800)
Exit the function early on the error path, instead of continuing, to
prevent a null pointer dereference later on.
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index 6d1cea28a7f814308ca2144dd07419920e3f15cd..809355c56c993fa568777fa168a525f5b17311a5 100644
(file)
--- a/
src/mesa/shader/slang/slang_codegen.c
+++ b/
src/mesa/shader/slang/slang_codegen.c
@@
-1894,6
+1894,7
@@
_slang_gen_asm(slang_assemble_ctx *A, slang_operation *oper,
_mesa_problem(NULL, "undefined __asm function %s\n",
(char *) oper->a_id);
assert(info);
+ return NULL;
}
assert(info->NumParams <= 3);