forked from checkedc/checkedc-clang
-
Notifications
You must be signed in to change notification settings - Fork 5
checked-c-convert tool: struct variable containing a checked pointer not initialized #3
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
Labels
bug
Something isn't working
Comments
A part of this issue is fixed by this commit: 51b6167 |
@hasantouma Please pull the branch: https://github.com/plum-umd/checkedc-clang/tree/WIP/IterativeItypeRefinement and test. If the issue is resolved. Please close this issue. |
@Machiry Yes, this commit does fix the initialization issue. I'll close this issue now. Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed this issue when converting the Icecast code. In the file
src/avl/avl.c
and various others.The C compiler doesn't complain when a struct variable is not initialized, but the Checked C compiler does. The
checked-c-convert
tool doesn't give an warnings that an initialized struct variable was seen.I created a small example for reference:
Original C code:
checked-c-convert
output:Running
clang
on thechecked-c-convert
output will produce the error:error: struct variable 'here' containing a checked pointer must have an initializer
The text was updated successfully, but these errors were encountered: