No overflow check for long long

Bug #172752 reported by robertwb
2
Affects Status Importance Assigned to Milestone
Cython
Fix Released
Undecided
Unassigned

Bug Description

Cython uses PyInt_AsUnsignedLongLongMask to convert to a long long, but this does not check to see if the result fits.

http://docs.python.org/api/intObjects.html

Perhaps we should create our own __pyx_PyInt_AsLongLong which performs this check.

Revision history for this message
robertwb (robertwb) wrote :

Overflow checks seem to be incorrect for types smaller than a long too.

Changed in cython:
status: New → Confirmed
robertwb (robertwb)
Changed in cython:
status: Confirmed → Fix Committed
robertwb (robertwb)
Changed in cython:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.