Re: [PATCH] sparc_attrs: Fix string overflow

2024-07-02 Thread Mark Wielaard
Hi Maks, On Tue, Jul 02, 2024 at 12:33:06AM +0300, Maks Mishin wrote: > A string is copied into the buffer 's' of size 577 without checking its > length first at sparc_attrs.c:95. I don't really like having runtime asserts in the library code. The buffer really should be big enough as the commen

[PATCH] sparc_attrs: Fix string overflow

2024-07-01 Thread Maks Mishin
A string is copied into the buffer 's' of size 577 without checking its length first at sparc_attrs.c:95. Found by RASU JSC. Signed-off-by: Maks Mishin --- backends/sparc_attrs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/sparc_attrs.c b/backends/sparc_attrs.c index 974e8fb