summaryrefslogtreecommitdiff
path: root/scripts/check-local-export
diff options
context:
space:
mode:
authorFrancois Berder <[email protected]>2026-05-15 22:35:03 +0200
committerJerome Forissier <[email protected]>2026-06-03 17:22:24 +0200
commitfac46e5aa7c448444764044467e0cceb9d12f3f0 (patch)
treebf7773e960839b3178042bd6a71fd349cb9e91b2 /scripts/check-local-export
parentf447887238822af40582483112cab524926e9258 (diff)
boot: pxe_utils: Fix potential initrd_filesize buffer overflow
ulong is 64 bits on 64-bit platforms. Hence, simple_xtoa can produce up to 16 hex characters + NULL byte. The initrd_filesize buffer is only 10 bytes which can cause a buffer overflow on every PXE boot that loads an initrd on an address greater than 4GB. Increase buffer size to 17 bytes to hold the maximum hex representation of a 64-bit address. Signed-off-by: Francois Berder <[email protected]> Reviewed-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'scripts/check-local-export')
0 files changed, 0 insertions, 0 deletions