summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJosephine Pfeiffer <hi@josie.lol>2025-10-01 20:41:04 +0300
committerHeiko Carstens <hca@linux.ibm.com>2025-10-21 11:17:29 +0300
commit4738e1166260fd812faf5fef624b0f9308d8c4d4 (patch)
tree9d70b605d64b6f03c64e6a207aefa5360259e9f2 /tools/lib/python
parent5379879a76e25998d56c2136fef7d67eae33418f (diff)
downloadlinux-4738e1166260fd812faf5fef624b0f9308d8c4d4.tar.xz
s390/sysinfo: Replace sprintf() with snprintf() for buffer safety
Replace sprintf() with snprintf() when formatting symlink target name to prevent potential buffer overflow. The link_to buffer is only 10 bytes, and using snprintf() ensures proper bounds checking if the topology nesting limit value is unexpectedly 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