This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Federico.Schwindt, neologix, nicm, rpointel, vstinner
Date 2011-07-26.23:01:54
SpamBayes Score 4.2264446e-07
Marked as misclassified No
Message-id <1311721314.96.0.879822420873.issue12181@psf.upfronthosting.co.za>
In-reply-to
Content
select.kevent(bignum, 1, 2, 3, sys.maxsize, bignum) raises a OverflowError('signed integer is greater than maximum') on a 64 bits system. select.kevent() constructor parses the 4th argument using "i" (an int): sys.maxsize doesn't fit in a C int on a 64 bits system.

kevent() constructor parses the 4th argument using "i", but it pass a pointer to a void* value (e->udata). It would be better to use a temporary C int variable, and then write the int into udata using the right cast.
History
Date User Action Args
2011-07-26 23:01:55vstinnersetrecipients: + vstinner, nicm, neologix, rpointel, Federico.Schwindt
2011-07-26 23:01:54vstinnersetmessageid: <1311721314.96.0.879822420873.issue12181@psf.upfronthosting.co.za>
2011-07-26 23:01:54vstinnerlinkissue12181 messages
2011-07-26 23:01:54vstinnercreate