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 NULL and unknown pointer handling in MayPointTo and ReachableFrom for race analysis #1176

Merged
merged 4 commits into from
Sep 27, 2023

Conversation

sim642
Copy link
Member

@sim642 sim642 commented Sep 19, 2023

This on top of #1174 because that's where #1175 first appeared.

This isn't a complete fix for #1175 but enough to fix various combinations of NULL and unknown pointers in the MayPointTo and ReachableFrom queries done by race analysis.

Changes

  1. Add back ReachableFrom unknown pointer handling which was accidentally removed in Use AddressDomain for MayPointTo and ReachableFrom queries #1142.
  2. Convert Int values to Address for the two queries. This is needed because NULL yields a zero integer constant.

@sim642 sim642 added this to the v2.3.0 milestone Sep 19, 2023
@sim642 sim642 added the pr-dependency Depends or builds on another PR, which should be merged before label Sep 19, 2023
Copy link
Member

@karoliineh karoliineh left a comment

Choose a reason for hiding this comment

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

Oof, that AD.remove Addr.UnknownPtr a did really go unnoticed for me, sorry for that.
Seems reasonable to me.

Base automatically changed from libfuns-concrat to master September 27, 2023 10:35
@sim642 sim642 removed the pr-dependency Depends or builds on another PR, which should be merged before label Sep 27, 2023
@sim642 sim642 merged commit 138a482 into master Sep 27, 2023
16 checks passed
@sim642 sim642 deleted the race-null branch September 27, 2023 10:37
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.

3 participants