mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibDeviceTree: Print the StringsBlock size properly when bounds checking
This commit is contained in:
parent
a2ef168d75
commit
01f32a22b4
Notes:
sideshowbarker
2024-07-17 11:34:34 +09:00
Author: https://github.com/ADKaster
Commit: 01f32a22b4
Pull-request: https://github.com/SerenityOS/serenity/pull/17460
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue