-
Notifications
You must be signed in to change notification settings - Fork 83
Refactor writing to pointers #1531
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
base: master
Are you sure you want to change the base?
Conversation
Decisions from GobCon on 09.07:
|
We already have the option |
This seems to have gotten stuck. Are there plans here? |
There was the matter of naming/describing the option but we discussed it and something seems to have been implemented. Not sure about the test failures though. I think it makes sense to do this though. |
| NullPtr -> | ||
begin match get_string "sem.null-pointer.dereference" with | ||
| "assume_none" -> D.bot () | ||
| "assume_top" -> store | ||
| _ -> assert false | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding something I noticed in #1777 (comment): this now makes writing to NULL
more explicit, but somehow there's still no warning.
I'm now wondering if we're actually missing a warning here or we actually emit one from somewhere else already. Should probably figure this out while we're at it.
BaseAnalysis
: Investigate whyjoin
over alternatives for non-definite AD target does not work #1465, and replaces complicated set logic with simplified AD.fold, for that:lval
-s is not empty when written toNullPtr
-s from address sets incollect_invalidate
andreachable_from_value
MayPointTo
is not subset ofReachableFrom
#1175stdlib.h
for correctly importing strtolUnknownPtr
before callingreachable_vars
inReachableFrom
MayPointTo
is not subset ofReachableFrom
#1175TODO