|
|
|
|
|
by eridius
3075 days ago
|
|
parse_mappings is incorrect. It has the following line: Vec::<usize>::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::<usize>.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 nothing to deinitialize. But it's still technically incorrect. |
|
Fix is over in https://github.com/fitzgen/source-map-mappings/pull/15