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

DEAD STORE reports many harmless cases like int i = 0xFFFFFFFF; i = SomeFunc(); #1083

Open
lucmann opened this issue Apr 10, 2019 · 5 comments
Open

Comments

@lucmann
Copy link

@lucmann lucmann commented Apr 10, 2019

infer version v0.15.0
in my case, 0xFFFF or 0xFFFFFFFF is a common initializer and there are a lot of this semantics in our code. I would like to ignore those harmless. but if I turn off liveness checker, I worry about missing some truely harmful bugs. Does Infer provide some filtering option or method?

@martintrojer
Copy link
Contributor

@martintrojer martintrojer commented Apr 17, 2019

Hi, if this is Java you can use @SuppressLint("infer") annotation. https://fbinfer.com/support

If its not java there is currently no support for this.

@jvillard
Copy link
Contributor

@jvillard jvillard commented Apr 17, 2019

This function does what you want but only whitelists x = 0. I'd welcome a pull request to make the set of constants configurable by adding an option to infer/src/base/Config.ml.

@lucmann
Copy link
Author

@lucmann lucmann commented Apr 22, 2019

thanks! the whitelist can be added by an option. that's handful. I'll dig it.

@XVilka
Copy link
Contributor

@XVilka XVilka commented Mar 4, 2020

Any updates on this one? @lucmaa

@lucmann
Copy link
Author

@lucmann lucmann commented Mar 4, 2020

sorry that there is none of it yet. @XVilka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.