summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Koroniewska <sandra.koroniewska@gmail.com>2017-03-06 10:57:00 -0700
committerBrian Paul <brianp@vmware.com>2017-03-06 19:43:02 -0700
commit13547c791f409f3829a1de408c08585e005e4ced (patch)
tree009589a0d583bd6b194022151001eca91f2678d8
parent8386ee5970a79c99ea0beb7bba6ccd1fad141d3b (diff)
shader_runner: make buffer large enough to fit any GL enum
This fixes a buffer overflow in spec/arb_shader_image_load_store/execution/disable_early_z.shader_test Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/shaders/shader_runner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 89e6e0a5a..b487e8a01 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -2821,7 +2821,7 @@ piglit_display(void)
double d[4];
int x, y, z, w, h, l, tex, level;
unsigned ux, uy;
- char s[32];
+ char s[300]; // 300 for safety
enum piglit_result result = PIGLIT_PASS;
parse_whitespace(next_line, &line);