-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Incorrect use of _PyLong_CompactValue() #121153
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
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Jun 29, 2024
* The result has type Py_ssize_t, not intptr_t. * Type cast between unsigned and signdet integer types should be explicit. * Downcasting should be explicit.
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Jun 29, 2024
* The result has type Py_ssize_t, not intptr_t. * Type cast between unsigned and signdet integer types should be explicit. * Downcasting should be explicit.
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Jun 29, 2024
* The result has type Py_ssize_t, not intptr_t. * Type cast between unsigned and signdet integer types should be explicit. * Downcasting should be explicit.
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Jul 9, 2024
We should change the return type to |
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Jul 17, 2024
…lue() (pythonGH-121154) * The result has type Py_ssize_t, not intptr_t. * Type cast between unsigned and signdet integer types should be explicit. * Downcasting should be explicit. * Fix integer overflow check in sum(). (cherry picked from commit 1801545) Co-authored-by: Serhiy Storchaka <[email protected]>
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Jul 17, 2024
…lue() (pythonGH-121154) * The result has type Py_ssize_t, not intptr_t. * Type cast between unsigned and signdet integer types should be explicit. * Downcasting should be explicit. * Fix integer overflow check in sum(). (cherry picked from commit 1801545) Co-authored-by: Serhiy Storchaka <[email protected]>
This was referenced Jul 17, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
…ythonGH-121154) * The result has type Py_ssize_t, not intptr_t. * Type cast between unsigned and signdet integer types should be explicit. * Downcasting should be explicit. * Fix integer overflow check in sum().
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
There are several errors related to use of
_PyLong_CompactValue()
inlongobject.c
.Py_ssize_t
, notintptr_t
. Although on most supported platforms it is the same.Some of the current code may have undefined behavior.
Linked PRs
The text was updated successfully, but these errors were encountered: