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.22:40:28
SpamBayes Score 0.000169956
Marked as misclassified No
Message-id <>
In-reply-to <>
> MvL> If you are absolutely certain that a cast cannot possibly truncate, 
> MvL> add a comment explaining why that is.
> Ah yes, sorry, I forgot to add a comment: done in r87746.

But the comment is actually wrong: It says

len <= buf_size <= INT_MAX (see above)

however, len > buf_size may happen, after this code:

    if (len > buf_size) {
                     "read() returned too much data: "
                     "%i bytes requested, %zd returned",
                     buf_size, len);
        goto finally;
Date User Action Args
2011-01-04 22:40:34loewissetrecipients: + loewis, amaury.forgeotdarc, pitrou, vstinner, schmir, brian.curtin, janglin
2011-01-04 22:40:29loewislinkissue9566 messages
2011-01-04 22:40:28loewiscreate