Fix wasm hotpatching for zero-sized data symbols (#4747)

This commit is contained in:
Amar Sood authored and GitHub committed 2025-10-10 21:44:15 -07:00
1 parent 9243ef4128
commit 11b2ea7f39
1 file changed
-4
-4
View File
@@ -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")?;