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

Update checked_array_typechecking.c #30

Closed
wants to merge 1 commit into from

Conversation

bryonglodencissp
Copy link

On line 1198 'r' is an uninitialized variable, which is an error.

Found by https://github.com/bryongloden/cppcheck

On line 1198 'r' is an uninitialized variable, which is an error.

Found by https://github.com/bryongloden/cppcheck
@dtarditi
Copy link
Member

dtarditi commented Jun 23, 2016

This line of code is supposed to be illegal. It is expected to be rejected by the compiler. Multiplying a pointer by a pointer is an operation that does not type check.. In addition, assigning to an array-typed local variable is also illegal. To clarify a little bit further, perhaps the new syntax for checked array types (line 1184) is confusing the cppcheck tool..

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

Successfully merging this pull request may close these issues.

2 participants