diff options
| author | Heiko Carstens <hca@linux.ibm.com> | 2025-10-07 11:05:06 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2025-12-07 16:15:18 +0100 |
| commit | d9f59178011265344a4864757cf21523668a2a75 (patch) | |
| tree | 1aa51a4b5870cfe18980085bcb8f5003428e68c6 /rust/helpers/build_bug.c | |
| parent | 51d90a15fedf8366cb96ef68d0ea2d0bf15417d2 (diff) | |
s390/vmur: Use scnprintf() instead of sprintf()
Use scnprintf() instead of sprintf() for those cases where the destination
is an array and the size of the array is known at compile time.
This prevents theoretical buffer overflows, but also avoids that people
again and again spend time to figure out if the code is actually safe.
Reviewed-by: Jan Polensky <japo@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions
