getsentry / rust-sourcemap

A library for rust that implements basic sourcemap handling
Other
224 stars 27 forks source link

Overflow Panic in VLQ #2

Closed alanhdu closed 7 years ago

alanhdu commented 7 years ago

The following test inserted into src/vlq.rs causes an overflow panic in debug mode:

#[test]
fn test_overflow() {
    parse_vlq_segment("00000000000000");
}

causes

thread 'vlq::test_overflow' panicked at 'attempt to shift left with overflow', src/vlq.rs:34