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.

@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 -641
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 2 times, most recently from 732f2dd to 2e5625d Compare October 13, 2024 15:54
@ErichDonGubler ErichDonGubler force-pushed the 0-dimension-transfers branch 2 times, most recently from ddee32c to 1a46142 Compare October 31, 2024 04:07
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