[Mesa-dev] [PATCH] radeonsi: fix possible truncation on renderer string

Timothy Arceri tarceri at itsqueeze.com
Thu Jun 7 01:03:10 UTC 2018


Fixes truncation warning in gcc 8.1

Fixes: 8539c9bf3158 ("gallium/radeon: add the kernel version into the renderer string")
---
 src/gallium/drivers/radeonsi/si_pipe.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h
index 5d1671fb87f..cf9b124fe5a 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.h
+++ b/src/gallium/drivers/radeonsi/si_pipe.h
@@ -409,7 +409,7 @@ struct si_screen {
 
 	struct radeon_info		info;
 	uint64_t			debug_flags;
-	char				renderer_string[100];
+	char				renderer_string[183];
 
 	unsigned			gs_table_depth;
 	unsigned			tess_offchip_block_dw_size;
-- 
2.17.1



More information about the mesa-dev mailing list