https://sourceware.org/bugzilla/show_bug.cgi?id=33006
Mark Wielaard <mark at klomp dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED --- Comment #6 from Mark Wielaard <mark at klomp dot org> --- commit 07bd923cea4b883ca2357e9fc80babcedd242b37 Author: Mark Wielaard <m...@klomp.org> Date: Tue Jun 3 01:50:07 2025 +0200 libcpu: riscv_disasm use 50 char mnebuf Some "illegal" instructions can be up to 24 chars (192 bits), We'll print this as 0x<48 hex chars>. So make sure the mnebuf is 50 chars (no terminating zero is needed). This shows up with _FORTIFY_SOURCE which would immediate terminate on such "illegal" instructions. Without we just use a few extra bytes on the stack (which aren't used afterwards, without any issue, even though it is technically UB). * libcpu/riscv_disasm.c (riscv_disasm): Extend char mnebuf array to 50. Signed-off-by: Mark Wielaard <m...@klomp.org> -- You are receiving this mail because: You are on the CC list for the bug.