projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
600d8ec
)
glspirv: drop pointless assert (size_t is unsigned)
author
Dave Airlie
<airlied@redhat.com>
Thu, 4 Oct 2018 23:20:09 +0000
(09:20 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 11 Oct 2018 00:19:48 +0000
(10:19 +1000)
Found by coverity
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/mesa/main/glspirv.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/glspirv.c
b/src/mesa/main/glspirv.c
index fecf7384eb390e40d652988076f32b3fa476e6be..972989055e9caa692ed8888877aee9e78ea467e8 100644
(file)
--- a/
src/mesa/main/glspirv.c
+++ b/
src/mesa/main/glspirv.c
@@
-73,8
+73,6
@@
_mesa_spirv_shader_binary(struct gl_context *ctx,
struct gl_spirv_module *module;
struct gl_shader_spirv_data *spirv_data;
- assert(length >= 0);
-
module = malloc(sizeof(*module) + length);
if (!module) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "glShaderBinary");