diff options
author | Andrew Kaster <akaster@serenityos.org> | 2023-02-17 10:24:55 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-19 13:49:07 +0100 |
commit | 01f32a22b4734c3934904b78072c55f2b134ade0 (patch) | |
tree | 6e580f7578c4db3e5b1dfe0fdb9fab83402acf45 /Userland | |
parent | a2ef168d75dbd59f645b014abb58895e90cbc1a9 (diff) | |
download | serenity-01f32a22b4734c3934904b78072c55f2b134ade0.zip |
LibDeviceTree: Print the StringsBlock size properly when bounds checking
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibDeviceTree/Validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDeviceTree/Validation.cpp b/Userland/Libraries/LibDeviceTree/Validation.cpp index 9afa2363da..7404231b36 100644 --- a/Userland/Libraries/LibDeviceTree/Validation.cpp +++ b/Userland/Libraries/LibDeviceTree/Validation.cpp @@ -104,7 +104,7 @@ bool validate_flattened_device_tree(FlattenedDeviceTreeHeader const& header, u8 u64 strings_block_size = header.off_dt_strings + header.size_dt_strings; if (strings_block_size > blob_size) { if (verbose == Verbose::Yes) - warnln("FDT Header reports invalid StringsBlock size: {} is too large given total size {}", structure_block_size, blob_size); + warnln("FDT Header reports invalid StringsBlock size: {} is too large given total size {}", strings_block_size, blob_size); return false; } |