parse_mappings is incorrect. It has the following line: Vec:: ::from_raw_parts(capacity_ptr, size, capacity); But size is wrong. size here is the number of bytes that JavaScript instructed Rust to allocate. It's not the size of the Vec:: . This should be harmless as the resulting Vec is immediately deallocated, so the only thing that size is used for is deinitializing values, and since the values are usize there's no…
Fix is over in https://github.com/fitzgen/source-map-mappings/pull/15