We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b71ef commit 033ca45Copy full SHA for 033ca45
llvm/tools/llvm-readobj/ObjDumper.cpp
@@ -54,6 +54,8 @@ static void printAsPrintable(raw_ostream &W, const uint8_t *Start, size_t Len) {
54
55
void ObjDumper::printAsStringList(StringRef StringContent,
56
size_t StringDataOffset) {
57
+ if (StringContent.size() < StringDataOffset)
58
+ return;
59
const uint8_t *StrContent = StringContent.bytes_begin();
60
// Some formats contain additional metadata at the start which should not be
61
// interpreted as strings. Skip these bytes, but account for them in the
0 commit comments