From 06f2516696f7fe14d80324e6fef44c793ba75864 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 17 Nov 2020 15:48:48 -0800 Subject: [PATCH] freedreno/afuc: Fix up some sprintf format security warnings. Showed up when I tried enabling asan. Reviewed-by: Rob Clark Part-of: --- src/freedreno/afuc/disasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedreno/afuc/disasm.c b/src/freedreno/afuc/disasm.c index 0bd1e1a9516..ef28b6a4ba9 100644 --- a/src/freedreno/afuc/disasm.c +++ b/src/freedreno/afuc/disasm.c @@ -233,7 +233,7 @@ static int label_idx(uint32_t offset, bool create) static const char * label_name(uint32_t offset, bool allow_jt) { - static char name[8]; + static char name[12]; int lidx; if (allow_jt) { @@ -279,7 +279,7 @@ static int fxn_idx(uint32_t offset, bool create) static const char * fxn_name(uint32_t offset) { - static char name[8]; + static char name[14]; int fidx = fxn_idx(offset, false); if (fidx < 0) return NULL;