[CP] Fix zlib inflation to ignore data past the ADLER32 trailer. #56526
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
triaged
Issue has been triaged by sub team
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Commit(s) to merge
https://dart-review.googlesource.com/c/sdk/+/380861
Target
stable
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/381389
Issue Description
Fixes a regression where
ZLibDecoder
would attempt to read data past the compressed data's trailer. This happens on all platforms. See #56481What is the fix
The fix is to modify the
ZLibDecoder
to have two modes:and to modify the
gzip
decompressor to use (2)Why cherry-pick
The full impact of the
ZLibDecoder
regression is unknown. It broke at least one Flutter project: GitJournal/GitJournal#962Risk
Low. The cherry pick reverts the default behavior of
ZLibDecoder
to what it was before Dart 3.5, while preserving the ability to decompress gzip files that was added in Dart 3.5.Issue link(s)
#56481
Extra Info
No response
The text was updated successfully, but these errors were encountered: