diff options
| author | Josephine Pfeiffer <hi@josie.lol> | 2025-10-01 19:40:46 +0200 |
|---|---|---|
| committer | Janosch Frank <frankja@linux.ibm.com> | 2025-10-20 12:43:18 +0000 |
| commit | f5a6fa189ad2e73d25e31de3cc7f0bf81907c986 (patch) | |
| tree | fb119b498a637e426d5ada9fdb8e4426a7fcf6a1 /scripts/clang-tools/gen_compile_commands.py | |
| parent | 7d5136ed1b218f7d68e15ff7a6d000a7ff3cce0f (diff) | |
KVM: s390: Replace sprintf with snprintf for buffer safety
Replace sprintf() with snprintf() when formatting debug names to prevent
potential buffer overflow. The debug_name buffer is 16 bytes, and while
unlikely to overflow with current PIDs, using snprintf() provides proper
bounds checking.
Signed-off-by: Josephine Pfeiffer <hi@josie.lol>
[frankja@linux.ibm.com: Fixed subject prefix]
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
