Skip to content

Commit 87259c4

Browse files
committed
Exit early on invalid symtab
1 parent ddf521d commit 87259c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/binary-reader.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,6 +2341,9 @@ Result BinaryReader::ReadLinkingSection(Offset section_size) {
23412341
CALLBACK(OnSectionSymbol, i, flags, index);
23422342
break;
23432343
}
2344+
default:
2345+
PrintError("Unknown symbol type: %d", static_cast<int>(sym_type));
2346+
return Result::Error;
23442347
}
23452348
}
23462349
break;

0 commit comments

Comments
 (0)