Module: Mesa Branch: master Commit: 06f2516696f7fe14d80324e6fef44c793ba75864 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=06f2516696f7fe14d80324e6fef44c793ba75864
Author: Eric Anholt <[email protected]> Date: Tue Nov 17 15:48:48 2020 -0800 freedreno/afuc: Fix up some sprintf format security warnings. Showed up when I tried enabling asan. Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7695> --- 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
