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.

作者 sdaoden
收信人 brett.cannon, ixokai, ned.deily, pitrou, sdaoden, vstinner
日期 2011-02-22.15:37:57
SpamBayes Score 1.6569877e-05
Marked as misclassified
Message-id <1298389078.05.0.50904530156.issue11277@psf.upfronthosting.co.za>
In-reply-to
内容
.. even with a self-compiled 1.2.3, INT_MAX/1000 ... nothing.
The problem is not crc32(), but the buffer itself:

   if (pbuf.len > 1024*5) {
        unsigned char *buf = pbuf.buf;
        Py_ssize_t len = pbuf.len;
        Py_ssize_t i;
fprintf(stderr, "CRC 32 2.1\n");
for(i=0; (size_t)i < (size_t)len;++i)
    *buf++ = 1;
fprintf(stderr, "CRC 32 2.2\n");

2.2 is never reached (in fact accessing buf[1] already causes fault).
Thus the problem is not zlib, but PyArg_ParseTuple().
But just don't ask me more on that!
历史
日期 用户 动作 参数
2011-02-22 15:37:58sdaoden修改recipients: + sdaoden, brett.cannon, ixokai, pitrou, vstinner, ned.deily
2011-02-22 15:37:58sdaoden修改messageid: <1298389078.05.0.50904530156.issue11277@psf.upfronthosting.co.za>
2011-02-22 15:37:57sdaoden链接issue11277 messages
2011-02-22 15:37:57sdaoden创建