Fix wasm hotpatching for zero-sized data symbols (#4747)
This commit is contained in:
1 parent
9243ef4128
commit
11b2ea7f39
1 file changed
-4
@@ -1389,10 +1389,6 @@ fn parse_bytes_to_data_segment(bytes: &[u8]) -> Result<RawDataSection<'_>> {
|
||||
|
||||
data_symbol_map.insert(*name, index);
|
||||
|
||||
if symbol.size == 0 {
|
||||
continue;
|
||||
}
|
||||
|
||||
let data_segment = segments
|
||||
.get(symbol.index as usize)
|
||||
.context("Failed to find data segment")?;
|
||||
|
||||
Reference in new issue
Block a user