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 loewis
Recipients amaury.forgeotdarc, brian.curtin, janglin, loewis, pitrou, schmir, vstinner
Date 2011-01-04.21:47:09
SpamBayes Score 1.8792702e-05
Marked as misclassified No
Message-id <1294177631.26.0.639346888504.issue9566@psf.upfronthosting.co.za>
In-reply-to
Content
haypo: please avoid introducing explicit casts (such as the one in pyexpat.c). Use SAFECASTs instead. If you are absolutely certain that a cast cannot possibly truncate, add a comment explaining why that is. In the specific case, I think it actually *is* possible that the cast truncates, because the case that read() returned too many bytes is incorrectly handled (it should set len to -1).
History
Date User Action Args
2011-01-04 21:47:11loewissetrecipients: + loewis, amaury.forgeotdarc, pitrou, vstinner, schmir, brian.curtin, janglin
2011-01-04 21:47:11loewissetmessageid: <1294177631.26.0.639346888504.issue9566@psf.upfronthosting.co.za>
2011-01-04 21:47:09loewislinkissue9566 messages
2011-01-04 21:47:09loewiscreate