Skip to content

Commit 787cc6b

Browse files
committed
Exit early on invalid symtab
1 parent ddf521d commit 787cc6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/binary-reader.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,6 +2341,8 @@ Result BinaryReader::ReadLinkingSection(Offset section_size) {
23412341
CALLBACK(OnSectionSymbol, i, flags, index);
23422342
break;
23432343
}
2344+
default:
2345+
ERROR("Unknown symbol type: %d", static_cast<int>(sym_type));
23442346
}
23452347
}
23462348
break;

0 commit comments

Comments
 (0)