Skip to content

PyLong_FromString not considered initializing end pointer #167

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

Open
dvarrazzo opened this issue Jan 23, 2019 · 0 comments
Open

PyLong_FromString not considered initializing end pointer #167

dvarrazzo opened this issue Jan 23, 2019 · 0 comments

Comments

@dvarrazzo
Copy link
Contributor

The function PyLong_FromString takes an optional pointer pend and returns a pointer to the unparsed part of the string. This is not considered and results in false positives, e.g. in this function.

dvarrazzo added a commit to psycopg/psycopg2 that referenced this issue Jan 23, 2019
No error before: cpychecker is confused but the var was init'd by
PyLong_FromString.

davidmalcolm/gcc-python-plugin#167
dvarrazzo added a commit to psycopg/psycopg2 that referenced this issue Jan 25, 2019
No error before: cpychecker is confused but the var was init'd by
PyLong_FromString.

davidmalcolm/gcc-python-plugin#167
dvarrazzo added a commit to psycopg/psycopg2 that referenced this issue Feb 16, 2019
No error before: cpychecker is confused but the var was init'd by
PyLong_FromString.

davidmalcolm/gcc-python-plugin#167
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