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

01.w_Defects/free_null_pointer.c #2

Open
davidmalcolm opened this issue Jul 6, 2015 · 0 comments
Open

01.w_Defects/free_null_pointer.c #2

davidmalcolm opened this issue Jul 6, 2015 · 0 comments

Comments

@davidmalcolm
Copy link

If I'm reading things correctly, https://github.com/regehr/itc-benchmarks/blob/master/01.w_Defects/free_null_pointer.c is a test that a verifier complains about a free of a NULL pointer.

However, it's legal to call free on a NULL pointer;
to quote "7.20.3.2 The free function" of http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1124.pdf

If ptr is a null pointer, no action occurs

If so, are these tests requiring false positives? (or am I misunderstanding things?)

Hope this is constructive

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

No branches or pull requests

1 participant