projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa3ec8b
)
ilo: fix a buffer overrun
author
Chia-I Wu
<olvaffe@gmail.com>
Fri, 19 Jun 2015 15:29:32 +0000
(23:29 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Sat, 20 Jun 2015 03:13:20 +0000
(11:13 +0800)
Add missing parentheses in SURFTYPE_NULL initialization.
src/gallium/drivers/ilo/core/ilo_state_surface.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/core/ilo_state_surface.c
b/src/gallium/drivers/ilo/core/ilo_state_surface.c
index be7225b7bc4996f44476eaf04a26f4f0323d9af4..5be9f8f62700ec9dda283246512c3f3e52015f2d 100644
(file)
--- a/
src/gallium/drivers/ilo/core/ilo_state_surface.c
+++ b/
src/gallium/drivers/ilo/core/ilo_state_surface.c
@@
-89,7
+89,7
@@
surface_set_gen7_null_SURFACE_STATE(struct ilo_state_surface *surf,
STATIC_ASSERT(ARRAY_SIZE(surf->surface) >= 13);
surf->surface[0] = dw0;
memset(&surf->surface[1], 0, sizeof(uint32_t) *
- ((
ilo_dev_gen(dev) >= ILO_GEN(8)) ? 13 : 8) - 1
);
+ ((
(ilo_dev_gen(dev) >= ILO_GEN(8)) ? 13 : 8) - 1)
);
return true;
}