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 alexandre.vassalotti
Recipients alexandre.vassalotti
Date 2008-01-27.22:44:53
SpamBayes Score 0.094920985
Marked as misclassified No
Message-id <1201473895.18.0.771876708371.issue1950@psf.upfronthosting.co.za>
In-reply-to
Content
I have found a few instances of the following pattern in Py3k: 

   char buf[MAX];
   len = PyUnicode_GET_SIZE(str);
   if (len >= MAX)
       /* return error */
   strcpy(buf, PyUnicode_AsString(str));

which could overflow if str contains non-ASCII characters. These were
probably introduced during the PyString -> PyUnicode transition. Anyway,
I got a patch that fixes (hopefully) most of these bugs.
History
Date User Action Args
2008-01-27 22:44:55alexandre.vassalottisetspambayes_score: 0.094921 -> 0.094920985
recipients: + alexandre.vassalotti
2008-01-27 22:44:55alexandre.vassalottisetspambayes_score: 0.094921 -> 0.094921
messageid: <1201473895.18.0.771876708371.issue1950@psf.upfronthosting.co.za>
2008-01-27 22:44:54alexandre.vassalottilinkissue1950 messages
2008-01-27 22:44:53alexandre.vassalotticreate