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

Refactor writing to pointers #1531

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Refactor writing to pointers #1531

wants to merge 9 commits into from

Conversation

@karoliineh
Copy link
Member Author

Decisions from GobCon on 09.07:

What should happen when we write to a pointer that is either known or NullPtr?

  • a) Should we keep the NullPtr and join the known values
  • b) Or should we assume that if it is null, the program crashes anyways, and if it continues, the known value can only be the one that was written
  • Add b) as default behavior, make it configurable (for now), with option called sem.abort-on-null-deref

@sim642
Copy link
Member

sim642 commented Jul 16, 2024

We already have the option sem.null-pointer.dereference (for reading) and I think we decided to reuse that for writing. Its name and values might need to be changed though to match both reading and writing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cleanup Refactoring, clean-up
Projects
None yet
2 participants