Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Use u32 to represent module offsets #811

Merged
merged 3 commits into from
Apr 16, 2021

Conversation

ranweiler
Copy link
Member

In #765, we introduced an assumption that all module-relative instruction offsets are representable by a u32. Move to an explicit u32 repr for offsets, and add validation to check for overflow at conversion sites.

src/agent/coverage/src/block/linux.rs Outdated Show resolved Hide resolved
@ranweiler ranweiler merged commit 404c123 into microsoft:main Apr 16, 2021
@ranweiler ranweiler deleted the cov-offset-u32 branch April 16, 2021 01:15
@ghost ghost locked as resolved and limited conversation to collaborators May 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants