diff options
| author | Josephine Pfeiffer <hi@josie.lol> | 2025-10-01 21:14:04 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2025-10-21 10:17:29 +0200 |
| commit | 5379879a76e25998d56c2136fef7d67eae33418f (patch) | |
| tree | 60e3004e82dfca1a3beac610dd60f188907c1bf3 /tools/lib/python | |
| parent | dd7d1d34ae484ba2caed8e01e03bdc4c263b1442 (diff) | |
s390/extmem: Replace sprintf() with snprintf() for buffer safety
Replace unsafe sprintf() calls with snprintf() in segment_save() to
prevent potential buffer overflows. The function builds command strings
by repeatedly appending to a fixed-size buffer, which could overflow if
segment ranges are numerous or values are large.
Signed-off-by: Josephine Pfeiffer <hi@josie.lol>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
