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 serhiy.storchaka
Recipients ammar2, benjamin.peterson, dyjakan, methane, serhiy.storchaka
Date 2016-12-29.20:07:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483042041.58.0.148221475124.issue29028@psf.upfronthosting.co.za>
In-reply-to
Content
There a problem with PySlice_GetIndicesEx() (see issue27867). Buffer length shouldn't be evaluated before PySlice_GetIndicesEx() since it can call user code that can change buffer length. This issue can't be solved without first solving issue27867.

get_buf() is called twice. First for getting the size, and later in buffer_item() or after PySlice_GetIndicesEx() for getting a pointer. I think it can be called once.

Ammar, please write a unittest for this issue. It should also cover bugs in the first two versions of the patch.
History
Date User Action Args
2016-12-29 20:07:21serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson, methane, ammar2, dyjakan
2016-12-29 20:07:21serhiy.storchakasetmessageid: <1483042041.58.0.148221475124.issue29028@psf.upfronthosting.co.za>
2016-12-29 20:07:21serhiy.storchakalinkissue29028 messages
2016-12-29 20:07:21serhiy.storchakacreate