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 lemburg
Recipients alexandre.vassalotti, belopolsky, gvanrossum, lemburg
Date 2008-04-29.11:07:37
SpamBayes Score 0.4614817
Marked as misclassified No
Message-id <1209467270.09.0.301845633996.issue1950@psf.upfronthosting.co.za>
In-reply-to
Content
@@ -2195,7 +2200,7 @@
 				}
 				return Py_None;
 			}
-			len = lastdot - start;
+			len = (size_t)(lastdot - start);
 			if (len >= MAXPATHLEN) {
 				PyErr_SetString(PyExc_ValueError,
 						"Module name too long");

The above cast needs to be (Py_ssize_t). size_t is an unsigned length type.
History
Date User Action Args
2008-04-29 11:07:50lemburgsetspambayes_score: 0.461482 -> 0.4614817
recipients: + lemburg, gvanrossum, belopolsky, alexandre.vassalotti
2008-04-29 11:07:50lemburgsetspambayes_score: 0.461482 -> 0.461482
messageid: <1209467270.09.0.301845633996.issue1950@psf.upfronthosting.co.za>
2008-04-29 11:07:48lemburglinkissue1950 messages
2008-04-29 11:07:47lemburgcreate