Skip to content
Snippets Groups Projects
Commit 94c8b75b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "linux-ramdump-parser-v2: Skip bad rodata headers"

parents 6f54b4bf 1bc0a672
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,8 @@ class ROData(RamParser):
fd.seek(prgheader.offset + (count - prgheader.vaddr))
ram_value = self.ramdump.read_word(count)
vm_value = struct.unpack('I', fd.read(4))[0]
if ram_value is None:
break
if detect == 0 and vm_value != ram_value:
print_out_str(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment