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

adds a proper handling of unitialized memory in Primus.Memory.map #1230

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

ivg
Copy link
Member

@ivg ivg commented Oct 19, 2020

This PR fixes a bug in the Primus.Memory.map function that was
triggered when it was called before the current memory descriptor is
properly initialized. Instead of creating a new empty state it was
just silently ignoring the map operation. The bug was also affecting the
Primus.Memory.del operation, for which such behavior (i.e.,
ignoring) is probably fine. The new implementation fixes the update
function used by both, map and del to prevent any further misuses of
this function.

This PR fixes a bug in the Primus.Memory.map function that was
triggered when it is called before the current memory descriptor is
properly initialized. Instead of creating a new empty state it was
just silently ignoring the `map` operation. The bug was also affecting the
`Primus.Memory.del` operation, for which such behavior (i.e.,
ignoring) is probably fine. The new implementation fixes the update
function used by both, map and del to prevent any further misuses of
this function.
@ivg ivg merged commit 9a9ad74 into BinaryAnalysisPlatform:master Oct 19, 2020
@ivg ivg deleted the fix-primus-memory-map branch December 1, 2021 19:14
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.

1 participant