]> Gentwo Git Trees - linux/.git/commit
s390/cmm: Replace sprintf() with scnprintf() for buffer safety
authorJosephine Pfeiffer <hi@josie.lol>
Wed, 1 Oct 2025 16:36:22 +0000 (18:36 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 21 Oct 2025 08:17:20 +0000 (10:17 +0200)
commitdd7d1d34ae484ba2caed8e01e03bdc4c263b1442
treebfcc033238bb65cd0014e8702d0168be9233b53f
parent211ddde0823f1442e4ad052a2f30f050145ccada
s390/cmm: Replace sprintf() with scnprintf() for buffer safety

Replace sprintf() with scnprintf() in cmm_timeout_handler() to prevent
potential buffer overflow. The scnprintf() function ensures we don't
write beyond the buffer size and provides safer string formatting.

Signed-off-by: Josephine Pfeiffer <hi@josie.lol>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/mm/cmm.c