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: don't perform invalid reference cast #554

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

wackbyte
Copy link
Contributor

@wackbyte wackbyte commented Jan 31, 2024

Replaces it with a raw pointer. Avoids possible Undefined Behavior.

Stripped-down example of how the current code fails in Miri: playground
Equivalent using the implementation from this PR: playground

Replaces it with a raw pointer. Avoids possible Undefined Behavior.
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (7a99ba6) 87.30% compared to head (bff060e) 87.25%.
Report is 1 commits behind head on main.

Files Patch % Lines
crates/mun_runtime/src/lib.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #554      +/-   ##
==========================================
- Coverage   87.30%   87.25%   -0.06%     
==========================================
  Files         276      276              
  Lines       31970    31966       -4     
==========================================
- Hits        27912    27891      -21     
- Misses       4058     4075      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@baszalmstra baszalmstra merged commit 8e449e8 into mun-lang:main Jan 31, 2024
17 of 18 checks passed
@wackbyte wackbyte deleted the ub branch January 31, 2024 12:47
@Wodann Wodann added the type: fix Bug fix or report label Jan 31, 2024
@Wodann Wodann added this to the Mun v0.6.0 milestone Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: fix Bug fix or report
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants