Skip to content

fix(vlq): Fix VLQ decoding bug - #143

Merged
loewenheim merged 1 commit into
masterfrom
sebastian/vlq
Nov 25, 2026
Merged

loewenheim merged 1 commit into
masterfrom
sebastian/vlq

Conversation

@loewenheim

Copy link
Copy Markdown
Contributor

https://tc39.es/ecma426/#sec-base64-vlq specifies that the unsigned value 1 (B in BASE64) should be converted to the signed number -2^31 (i32::MIN). Without this fix, both A and B would be decoded as 0.

@loewenheim
loewenheim requested a review from a team November 25, 2026 15:11
@loewenheim
loewenheim merged commit 103e104 into master Nov 25, 2026
15 checks passed
@loewenheim
loewenheim deleted the sebastian/vlq branch November 25, 2026 15:14
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants