Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move 0-dimension check for transfers to be after validation #5362

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Mar 7, 2024

Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories

Discovered with Firefox's bug 1848866.

Description
Describe what problem this is solving, and how it's solved.

Testing
Explain how this change is tested.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch 2 times, most recently from a3a24d9 to 1746ebe Compare April 2, 2024 01:05
@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch from 1746ebe to 60cf6db Compare April 18, 2024 14:31
@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch from 60cf6db to aad14de Compare May 8, 2024 21:52
@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch from aad14de to e504e14 Compare May 30, 2024 21:02
@teoxoy

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler self-assigned this May 31, 2024
@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler ErichDonGubler changed the title fix: remove 0-dimension check for transfers fix: move 0-dimension check for transfers to be after validation May 31, 2024
Comment on lines 707 to 665
if size == 0 {
log::trace!("Ignoring copy_buffer_to_buffer of size 0");
return Ok(());
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: This and the other hunk should be moved, not removed.

@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch from e504e14 to b350e77 Compare July 5, 2024 20:35
@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch 2 times, most recently from 732f2dd to 2e5625d Compare October 13, 2024 15:54
@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch 3 times, most recently from 1a46142 to 1d2a422 Compare November 4, 2024 19:38
@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch 2 times, most recently from 7a3ddb3 to 3cbdc71 Compare November 12, 2024 13:57
@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch 2 times, most recently from 819fea8 to f50cb85 Compare December 17, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants