summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-06-04 23:19:27 +0200
committerBas Nieuwenhuizen <[email protected]>2019-06-04 23:20:50 +0200
commita6a5a6f67f8d1dfe3d230deccf9e1dc6cfb7c71e (patch)
tree53106d2f93f45ae02eaff9f5eb0a04dd7016b8e8 /src/gallium/drivers/freedreno
parent6256925b1147391fdc62389a3349dec1392df31e (diff)
freedreno: Add printf pattern string.
Some new flag setting disallows it due to being a security risk. Fixes: c9c1e261064 "mesa: prevent common string formatting security issues" Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index 686a930f494..12488ef9082 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -607,7 +607,7 @@ fd_get_compute_param(struct pipe_screen *pscreen, enum pipe_shader_ir ir_type,
case PIPE_COMPUTE_CAP_IR_TARGET:
if (ret)
- sprintf(ret, ir);
+ sprintf(ret, "%s", ir);
return strlen(ir) * sizeof(char);
case PIPE_COMPUTE_CAP_GRID_DIMENSION: