commit | 53330915663c715cafe99bf690ea6264edad7ed2 | [log] [tgz] |
---|---|---|
author | Adam Rice <ricea@chromium.org> | Thu Dec 10 23:28:47 2020 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Dec 10 23:28:47 2020 |
tree | d5bc5ec5656a213a5725853520241076284e1730 | |
parent | 0088db346d4f0979fa9ecb170a090317f4f2fdd2 [diff] |
Correctly handle detach during (de)compression Sometimes CompressionStream and DecompressionStream enqueue multiple output chunks for a single input chunk. When this happens, JavaScript code can detach the input ArrayBuffer while the stream is processing it. This will cause an error when zlib tries to read the buffer again afterwards. To prevent this, buffer output chunks until the entire input chunk has been processed, and then enqueue them all at once. (cherry picked from commit 4794770cf175e3bb9425c64a6d196e07392cd34d) Bug: 1151298 Change-Id: I03fca26fc641d54b09067e3994b76ee8efca6839 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2567539 Commit-Queue: Adam Rice <ricea@chromium.org> Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#833659} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2584723 Reviewed-by: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/branch-heads/4324@{#802} Cr-Branched-From: c73b5a651d37a6c4d0b8e3262cc4015a5579c6c8-refs/heads/master@{#827102}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.