forked from OSchip/llvm-project
[WebAssembly] Fix copy-paste error in debugging string
llvm-svn: 326326
This commit is contained in:
parent
06d4181140
commit
7e4eee9831
|
@ -455,7 +455,7 @@ Error WasmObjectFile::parseLinkingSectionSymtab(const uint8_t *&Ptr,
|
|||
uint32_t Offset = readVaruint32(Ptr);
|
||||
uint32_t Size = readVaruint32(Ptr);
|
||||
if (Offset + Size > DataSegments[Index].Data.Content.size())
|
||||
return make_error<GenericBinaryError>("invalid data symbol index",
|
||||
return make_error<GenericBinaryError>("invalid data symbol offset",
|
||||
object_error::parse_failed);
|
||||
Info.DataRef = wasm::WasmDataReference{Index, Offset, Size};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue