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 Float::{min,max} implementations #295

Merged
merged 2 commits into from
Jan 3, 2022
Merged

Conversation

Robbepop
Copy link
Member

@Robbepop Robbepop commented Jan 2, 2022

Encountered this while writing Wasm spec test suite for v1 engine.
As in #293 the Wasm spec test suite for v0 seem to not properly handle catch these cases and therefore they remained unnoticed.

Also add regression unit tests for both operations.
Now both operations adhere to the Wasm specification.

Also add regression unit tests for both operations.
Now both operations adhere to the Wasm specification.
@codecov-commenter
Copy link

Codecov Report

Merging #295 (4d70bd2) into master (8b27c2b) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #295      +/-   ##
==========================================
+ Coverage   80.00%   80.07%   +0.06%     
==========================================
  Files          30       30              
  Lines        4672     4688      +16     
==========================================
+ Hits         3738     3754      +16     
  Misses        934      934              
Impacted Files Coverage Δ
src/value.rs 71.16% <100.00%> (+2.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b27c2b...4d70bd2. Read the comment docs.

@Robbepop Robbepop merged commit 9556783 into master Jan 3, 2022
@athei athei deleted the rf-fix-min-max-impls branch January 3, 2022 14:58
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Jul 12, 2022
This fixes a bug recently found on oss-fuzz which was fixed in
wasmi-labs/wasmi#295 and wasmi-labs/wasmi#293.
alexcrichton added a commit to bytecodealliance/wasmtime that referenced this pull request Jul 12, 2022
This fixes a bug recently found on oss-fuzz which was fixed in
wasmi-labs/wasmi#295 and wasmi-labs/wasmi#293.
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.

3 participants