mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
glsl: Return NULL on _slan_gen_asm error path on non-debug builds.
Exit the function early on the error path, instead of continuing, to prevent a null pointer dereference later on.
This commit is contained in:
parent
df20c3943a
commit
3c90777fd7
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue