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

fixes arguments attributes in the callsites plugin #1034

Merged
merged 3 commits into from
Feb 6, 2020

Conversation

gitoleg
Copy link
Contributor

@gitoleg gitoleg commented Jan 22, 2020

When attributes are assigned to a newly created synthetic argument term
in the callsites plugin, we don't take into consideration attributes
from the original argument term. This PR fixes this and now all the
attributes from origin argument term are assigned to the new one.

When attributes are assigned to a newly created synthetic argument term
in the callsites plugin, we don't take into consideration attributes
from the original argument term. This PR fixes this and now all the
attributes from origin argument term are assigned to the new one.
Term.set_attr t2 Term.origin (Term.tid t1) |>
transfer_attr Disasm.insn t1 |>
transfer_attr address t1
let transfer_attrs origin_arg call arg =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The arg argument is not an arg it is a def.

transfer_attr Disasm.insn t1 |>
transfer_attr address t1
let transfer_attrs origin_arg call arg =
let arg = Term.with_attrs arg (Term.attrs origin_arg) in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this code to the def_of_arg function, leave everything else intact.

@ivg ivg merged commit 948165b into BinaryAnalysisPlatform:master Feb 6, 2020
@gitoleg gitoleg deleted the fixes-callsites branch May 13, 2020 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants