Fixed vtable duplication for binary annotator (#7809)

This commit is contained in:
Derek Bailey
2023-02-02 12:39:39 -06:00
committed by GitHub
parent f838017860
commit 0fb5519585
28 changed files with 6807 additions and 6788 deletions

View File

@@ -4,11 +4,11 @@
// Binary file: tests/invalid_root_table_vtable_offset.bin
header:
+0x0000 | 44 00 00 00 | UOffset32 | 0x00000044 (68) Loc: +0x0044 | offset to root table `AnnotatedBinary.Foo`
+0x0004 | 41 4E 4E 4F | char[4] | ANNO | File Identifier
+0x0000 | 44 00 00 00 | UOffset32 | 0x00000044 (68) Loc: 0x0044 | offset to root table `AnnotatedBinary.Foo`
+0x0004 | 41 4E 4E 4F | char[4] | ANNO | File Identifier
unknown (no known references):
+0x0008 | 00 00 3A 00 68 00 0C 00 | ?uint8_t[60] | ..:.h... | WARN: nothing refers to this section.
+0x0008 | 00 00 3A 00 68 00 0C 00 | ?uint8_t[60] | ..:.h... | WARN: nothing refers to this section.
+0x0010 | 07 00 00 00 08 00 10 00 | | ........
+0x0018 | 14 00 30 00 34 00 09 00 | | ..0.4...
+0x0020 | 38 00 3C 00 40 00 44 00 | | 8.<.@.D.
@@ -18,10 +18,10 @@ unknown (no known references):
+0x0040 | 00 00 64 00 | | ..d.
root_table (AnnotatedBinary.Foo):
+0x0044 | FF FF 00 00 | SOffset32 | 0x0000FFFF (65535) Loc: +0xFFFFFFFFFFFF0045 | ERROR: offset to vtable. Invalid offset, points outside the binary.
+0x0044 | FF FF 00 00 | SOffset32 | 0x0000FFFF (65535) Loc: 0xFFFFFFFFFFFF0045 | ERROR: offset to vtable. Invalid offset, points outside the binary.
unknown (no known references):
+0x0048 | 00 00 00 01 02 02 01 01 | ?uint8_t[600] | ........ | WARN: nothing refers to this section.
+0x0048 | 00 00 00 01 02 02 01 01 | ?uint8_t[600] | ........ | WARN: nothing refers to this section.
+0x0050 | D2 04 00 00 28 02 00 00 | | ....(...
+0x0058 | 01 00 00 00 02 00 00 00 | | ........
+0x0060 | 0C 00 00 00 0A 00 00 00 | | ........