Repository navigation
fix(vlq): Fix VLQ decoding bug - #143
Merged
Merged
Conversation
tobias-wilfert
approved these changes
Nov 25, 2026
kdy1
added a commit
to swc-project/swc-sourcemap
that referenced
this pull request
Nov 26, 2026
## Summary Merge the latest `getsentry/rust-sourcemap` `master` (`103e104`) into the fork. Merged upstream commits: - `43c5b00` ref: Restructure some modules (getsentry#141) - `103e104` fix(vlq): Fix VLQ decoding bug (getsentry#143) ## Conflict resolution - `Cargo.toml`: kept the fork's package metadata (name, version, authors, description, repository). - `src/types.rs`: upstream split this file into `src/types/{mod,index,token}.rs`. The fork's `BytesStr` and `FxHashSet` changes were applied again to the new files. The fork's `SourceMapIndex` debug ID test moved to `src/types/index.rs`. ## Validation `cargo test` and `cargo test --all-features` passed locally on the merge commit. CI was not awaited.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://tc39.es/ecma426/#sec-base64-vlq specifies that the unsigned value
1(Bin BASE64) should be converted to the signed number -2^31 (i32::MIN). Without this fix, bothAandBwould be decoded as0.