mirror of
https://github.com/python/cpython.git
synced 2026-05-11 07:00:24 -04:00
4c7fdfc35b
This patch correct bounds checking in PyLong_FromLongLong. Currently, it does not check properly for negative values when checking to see if the incoming value fits in a long or unsigned long. This results in possible silent truncation of the value for very large negative values.