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 xiang.zhang
Recipients serhiy.storchaka, vstinner, xiang.zhang
Date 2016-10-06.18:15:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475777704.53.0.510656129922.issue28379@psf.upfronthosting.co.za>
In-reply-to
Content
Currently PyUnicode_CopyCharacters doesn't check arguments thoroughly. This could lead to undefined behaviour or crash in debug mode. For example, from_start > len(from), how_many < 0. Another case is that when how_many > len(from), it will choose len(from) but this can still fail since from_start can > 0. The doc of it is also not perfect, it does not necessarily return 0 on success.
History
Date User Action Args
2016-10-06 18:15:04xiang.zhangsetrecipients: + xiang.zhang, vstinner, serhiy.storchaka
2016-10-06 18:15:04xiang.zhangsetmessageid: <1475777704.53.0.510656129922.issue28379@psf.upfronthosting.co.za>
2016-10-06 18:15:04xiang.zhanglinkissue28379 messages
2016-10-06 18:15:04xiang.zhangcreate