Ver código fonte

LibDeviceTree: Print the StringsBlock size properly when bounds checking

Andrew Kaster 2 anos atrás
pai
commit
01f32a22b4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Userland/Libraries/LibDeviceTree/Validation.cpp

+ 1 - 1
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;
     }