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

protects symbolic executor from segfaults when setting memory inputs #1246

Merged

Conversation

ivg
Copy link
Member

@ivg ivg commented Nov 23, 2020

Do not fail when memory location wasn't explicitly set as symbolic but
just register it on the fly.

Do not fail when memory location wasn't explicitly set as symbolic but
just register it on the fly.
The memory operation is checking the layering information before any
read or write operation to ensure that the address being accessed is
properly mapped. It is slow and is linear to the number of layers.
However, if the address is already in the values mapping then it means
that it was checked and is writable and readable so we can omit the
layers check. The latter is only needed when the address is accessed
for the first time.
@ivg ivg merged commit 68d34da into BinaryAnalysisPlatform:master Nov 24, 2020
@ivg ivg deleted the prevents-symexec-from-segfaulting branch November 24, 2020 21:41
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