Issue 27867: various issues due to misuse of PySlice_GetIndicesEx (original) (raw)

Created on 2016-08-26 15:51 by tehybel, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (33)

msg273708 - (view)

Author: tehybel (tehybel)

Date: 2016-08-26 15:51

Here I will describe 6 issues with various core objects (bytearray, list) and the array module.

Common to them all is that they arise due to a misuse of the function PySlice_GetIndicesEx.

This type of issue results in out-of-bounds array indexing which leads to memory disclosure, use-after-frees or memory corruption, depending on the circumstances.

For each issue I've attached a proof-of-concept script which either prints leaked heap memory or segfaults on my machine (64-bit linux, --with-pydebug, python 3.5.2).

Issue 1: out-of-bounds indexing when taking a bytearray's subscript

While taking the subscript of a bytearray, the function bytearray_subscript in /Objects/bytearrayobject.c calls PySlice_GetIndicesEx to validate the given indices.

Some of these indices might be objects with an index method, and thus PySlice_GetIndicesEx could call back into python code.

If the evaluation of the indices modifies the bytearray, the indices might no longer be safe, despite PySlice_GetIndicesEx saying so.

Here is a PoC which lets us read out 64 bytes of uninitialized memory from the heap:


class X: def index(self): b[:] = [] return 1

b = bytearray(b"A"*0x1000) print(b[0:64:X()])


Here's the result on my system:

$ ./python poc17.py bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xce\x86\x9ff\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')

Issue 2: memory corruption in bytearray_ass_subscript

This issue is similar to the one above. The problem exists when assigning to a bytearray via subscripting. The relevant function is bytearray_ass_subscript. The relevant line is again the one calling PySlice_GetIndicesEx.

Here's a PoC which leads to memory corruption of the heap:


class X: def index(self): del b[0:0x10000] return 1

b = bytearray(b"A"*0x10000) b[0:0x8000:X()] = bytearray(b"B"*0x8000)


Here's the result of running it:

(gdb) r poc20.py Program received signal SIGSEGV, Segmentation fault. PyCFunction_NewEx (ml=0x8b4140 <textiowrapper_methods+128>, self=self@entry=0x7ffff7f0e898, module=module@entry=0x0) at Objects/methodobject.c:31 31 free_list = (PyCFunctionObject *)(op->m_self); (gdb) p op $13 = (PyCFunctionObject *) 0x4242424242424242

Issue 3: use-after-free when taking the subscript of a list

This issue is similar to the one above, but it occurs when taking the subscript of a list rather than a bytearray. The relevant code is in list_subscript which exists in /Objects/listobject.c. Here's a PoC:


class X: def index(self): b[:] = [1, 2, 3] return 2

b = [123]*0x1000 print(b[0:64:X()])


It results in a segfault here because of a use-after-free:

(gdb) run ./poc18.py Program received signal SIGSEGV, Segmentation fault. 0x0000000000483553 in list_subscript (self=0x7ffff6d53988, item=) at Objects/listobject.c:2441 2441 Py_INCREF(it); (gdb) p it $2 = (PyObject *) 0xfbfbfbfbfbfbfbfb

Issue 4: use-after-free when assigning to a list via subscripting

The same type of issue exists in list_ass_subscript where we assign to the list using a subscript. Here's a PoC which also results in a use-after-free:


class X: def index(self): b[:] = [1, 2, 3] return 2

b = [123]*0x1000 b[0:64:X()] = [0]*32


(gdb) r poc19.py Program received signal SIGSEGV, Segmentation fault. 0x0000000000483393 in list_ass_subscript (self=, item=, value=) at Objects/listobject.c:2603 2603 Py_DECREF(garbage[i]); (gdb) p garbage[i] $4 = (PyObject *) 0xfbfbfbfbfbfbfbfb

Issue 5: out-of-bounds indexing in array_subscr

Same type of issue. The problem is in the function array_subscr in /Modules/arraymodule.c.

Here's a PoC which leaks and prints uninitialized memory from the heap:


import array

class X: def index(self): del a[:] a.append(2) return 1

a = array.array("b") for _ in range(0x10): a.append(1)

print(a[0:0x10:X()])


And the result:

$ ./python poc22.py array('b', [2, -53, -53, -53, -5, -5, -5, -5, -5, -5, -5, -5, 0, 0, 0, 0])

Issue 6: out-of-bounds indexing in array_ass_subscr

Same type of issue, also in the array module. Here's a PoC which segfaults here:


import array

class X: def index(self): del a[:] return 1

a = array.array("b") a.frombytes(b"A"*0x100) del a[::X()]


How should these be fixed?

I would suggest that in each instance we could add a check after calling PySlice_GetIndicesEx. The check should validate that the "length" argument passed to PySlice_GetIndicesEx did not change during the call. But maybe there is a better way?

(By the way: these issues might also exist in 2.7, I did not check.)

msg273720 - (view)

Author: Terry J. Reedy (terry.reedy) * (Python committer)

Date: 2016-08-26 19:21

I presume you are suggesting to raise if the length changes. This is similar to raising when a dict is mutated while iterating. Note that we do not do this with mutable sequences. (If the iteration is stopped with out-of-memory error, so be it.)

An alternate approach would be to first fully evaluate start, stop, step , and then length, to ints, in that order, before using any of them. In particular, have everything stable before comparing and adjusting start and stop to length. This way, slices would continue to always work, barring other exceptions in index or length.

msg273775 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2016-08-27 10:49

Even list suffers from this bug if slicing step is not 1.

class X: def index(self): del a[:] return 1

a = [0] a[:X():2]

msg273801 - (view)

Author: Terry J. Reedy (terry.reedy) * (Python committer)

Date: 2016-08-27 21:51

There is really one immediate issue: PySlice_GetIndicesEx in Objects/sliceobject.c takes as inputs a slice object and a sequence length, but not the sequence itself. It starts with "/* this is harder to get right than you might think */" Yep. It assumes both inputs are constants.

However, it thrice calls _PyEval_SliceIndex(intlike) (Python/ceval.c). This call in turn may call PyNunber_AsSsize_t(intlike), which calls intlike.index. At least in toy examples, this last can change an underlying mutable sequence and hence its length. Since the calculation of the returned start, stop, step, and slicelength depend on the length, the result is that PySlice_GetIndeces can indirectly invalidate its own results.

Side effects in index also affect indexing

class X: def index(self): b[:] = [] return 1

b = [1,2,3,4] b[X()]

Traceback (most recent call last): File "F:\Python\mypy\tem.py", line 7, in print(b[X()]) IndexError: list index out of range

Similarly, "b[X()] = 4" results in "list assignment index ...".

Crashes seem not possible as the conversion to a real int seems to always be done locally in the sequence_subscript method. See for instance list_subscript and list_ass_subscript in Objects/listojbect.c. If the subscript is an index, it is first converted to int with PyNumber_AsSsize_t before being possibly incremented by PySize(self) and compared to the same.

Side-effects also affect index methods.

class X: def index(self): b[:] = [] return 1

b = [1] b.index(1, X())

Traceback (most recent call last): File "F:\Python\mypy\tem.py", line 7, in print(b.index(1, X())) ValueError: 1 is not in list

For tuple/list/deque.index(val, start, stop), start and stop are converted to int with _PyEval_SliceIndex, as with slices. However, they make this call as part of an initial PyArg_ParseTuple call, before adjusting them to the length of the sequence. So again, no crash is possible.

I suppose there are other places where PyNumber_AsSsize_t is called, and where a crash might be possible, and should be checked, But back to slicing.

Action on this issue requires a policy decision among three options.

  1. In general, special methods should be proper functions, without side effects, that return what the doc suggests. Doing otherwise is 'at one own risk'. Close that as "won't fix" because anyone writing an 'intlike' with such an evil index method deserves the result, even it it is a crash. Also, this seems like a toy problem since it require index can know of and access the collection it is being called for. It would otherwise only be written my a malicious attacker, who could do things much worse in the index methods.

Counter arguments: A. Our usual policy is that pure Python code only using the stdlib (minus ctypes) should not crash. B. The writer and user of 'intlike' might be different people.

Question: does 'no crash' apply to arbitrary side-effects in special methods?

  1. Declare and enforce that a length-changing side-effect in index used with slicing is a bug and raise ValueError. A. Change every mutable_collection(_ass)_subscript method to record is length before calling PySlice_GetIndicesEx and check itself afterwards. B. Create PySlice_GetIndicesEx2 to receive *collection instead of length, so it can do the before and check in just one place, and change the calls.

  2. As I suggested earlier: 'slicing should always work'. Ensure that the 'length' used to adjust int slice components is the correct value, after all calls to index. A. Change all calling sites, as above, to pass a slice object with int components and a length calculated after int conversions. Bl. Create PySlice_GetIndicesEx2 to receive *collection, so it can retrieve the length after index conversions.

I will ask on pydev which, if any, of the 4 possible patches would be best.

msg273806 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2016-08-28 04:35

This is a toy example that exposes the problem, but the problem itself is not a toy problem. The key point is that calculating slice indices cause executing Python code and releases GIL. In multithread program a sequence can be changed not in toy index method, but in other thread, in legitimate code. This is very hardly reproducible bug.

Variants B are not efficient. To determine the size of a sequence we should call its len() method. This is less efficient than using macros Py_SIZE() or PyUnicode_GET_LENGTH(). And it is not always possible to pass a sequence. In multidimensional array there is no such sequence (see for example _testbuffer.ndarray).

msg273807 - (view)

Author: Terry J. Reedy (terry.reedy) * (Python committer)

Date: 2016-08-28 05:46

FWIW. Py_SIZE is used all over listobject.c. Are you saying that this could be improved?

msg273809 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2016-08-28 06:50

I'm saying that PySlice_GetIndicesEx2 can't just use Py_SIZE.

msg273943 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2016-08-30 17:47

Actually making slicing always working is easier than I expected. Maybe it is even easier than raise an error.

PySlice_GetIndicesEx() is split on two functions. First convert slice attributes to Py_ssize_t, then scale them to appropriate range depending on the length. Here is a sample patch.

msg273962 - (view)

Author: Terry J. Reedy (terry.reedy) * (Python committer)

Date: 2016-08-30 20:40

I like this. Very nice. What I understand is that callers that access PySlice_GetIndicesEx via the header file (included with Python.h) will see the function as a macro. When the macro is expanded, the length expression will be evaluated after any index calls.

This approach requires that the length expression calculate the length from the sequence, rather than being a length computer before the call. I checked and all of our users in /Objects pass some form of seq.get_size(). This approach also requires that the function be accessed via .h rather than directly as the function in the .c file. If we go this way, should he PySlice_GetIndicesEx doc say something?

I reviewed the two new functions and am satisfied a) that they correctly separate converting None and non-ints to ints from adjusting start and stop as ints according to length and b) that the effect of the change in logic for the latter is to stop making unnecessary checks that must fail.

msg273995 - (view)

Author: Alyssa Coghlan (ncoghlan) * (Python committer)

Date: 2016-08-31 04:06

Nice! The one thing I would suggest double checking with this change is whether or not we have test cases covering ranges with lengths that don't fit into ssize_t. It's been years since I looked at that code, so I don't remember exactly how it currently works, but it does work (except for len, due to the signature of the C level length slot):

bigrange = range(int(-10e30), int(10e30)) len(bigrange) Traceback (most recent call last): File "", line 1, in OverflowError: Python int too large to convert to C ssize_t bigrange[:] range(-9999999999999999635896294965248, 9999999999999999635896294965248) bigrange[0:-1] range(-9999999999999999635896294965248, 9999999999999999635896294965247) bigrange[::2] range(-9999999999999999635896294965248, 9999999999999999635896294965248, 2) bigrange[0:-1:2] range(-9999999999999999635896294965248, 9999999999999999635896294965247, 2)

msg275179 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2016-09-08 21:49

Yet one possible solution is to make slice constructor converting arguments to exact ints. This allows to leave user code unchanged. But this is 3.6-only solution of course. I would like to know Mark's thoughts on this.

msg275277 - (view)

Author: Alyssa Coghlan (ncoghlan) * (Python committer)

Date: 2016-09-09 07:20

As in, for arguments that have index() methods, do the conversion to a true Python integer eagerly when the slice is built rather than lazily when slice.indices() (or the C-level equivalent) is called?

That actually seems like a potentially plausible future approach to me, but isn't a change I'd want to make hastily - those values are visible as the start, stop and step attributes on the slice, and https://docs.python.org/3/reference/datamodel.html#types currently describes those as "These attributes can have any type."

Given that folks do a lot of arcane things with the subscript notation, I wouldn't want to break working code if we have less intrusive alternatives.

msg275284 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2016-09-09 08:04

Then there is a design question. I believe that after all we should expose these two new functions publicly. And the question is about function names and the order of arguments. Currently signatures are:

int _PySlice_Unpack(PyObject *r, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); int _PySlice_EvalIndices(Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t step, Py_ssize_t length, Py_ssize_t *slicelength);

Are there suggestions for names? Perhaps the second functions should not have prefix PySlice_, since it doesn't work with slice object.

msg275602 - (view)

Author: Alyssa Coghlan (ncoghlan) * (Python committer)

Date: 2016-09-10 08:43

I think those names (with the leading underscore removed) would be fine as a public API - the fact that PySlice_EvalIndices doesn't take a reference to the slice object seems similar to a static method, where the prefix is there for namespacing reasons, rather than because it actually operates on a slice instance.

msg284297 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2016-12-29 22:37

Renamed _PySlice_EvalIndices() to _PySlice_AdjustIndices() and changed its signature. Updated the documentation and python3.def. Fixed yet one bug: implementation-defined behavior with division by negative step.

Note that since new functions are used in public macro, they become a part of the stable API. Shouldn't starting underscores be removed from names?

An attempt of discussing names and signatures on Python-Dev: https://mail.python.org/pipermail/python-dev/2016-December/147048.html.

msg286067 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-01-23 10:00

We can't just add API functions in maintained releases, because it will break the stable ABI. We can use them only when explicitly define the version of API.

Proposed patch for 3.6 and 3.7 adds public API functions PySlice_Unpack() and PySlice_AdjustIndices() and makes PySlice_GetIndicesEx() a macro if set Py_LIMITED_API to the version that supports new API. Otherwise PySlice_GetIndicesEx() becomes deprecated.

This doesn't break extensions compiled with older Python versions. Extensions compiled with new Python versions without limited API or with high API version are not compatible with older Python versions as expected, but have fixed the original issue. Compiling extensions with new Python versions with set low Py_LIMITED_API value will produce a deprecation warning.

Pay attention to names and signatures of new API. It would be hard to change it when it added.

I think this is the safest way. In 2.7 we should replace PySlice_GetIndicesEx() with a macro for internal use only if we want to fix an issue for builtins and preserve a binary compatibility.

msg286241 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2017-01-25 11:29

New changeset d5590f357d74 by Serhiy Storchaka in branch '2.7': Issue #27867: Replaced function PySlice_GetIndicesEx() with a macro. https://hg.python.org/cpython/rev/d5590f357d74

New changeset 96f5327f7253 by Serhiy Storchaka in branch '3.5': Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if https://hg.python.org/cpython/rev/96f5327f7253

New changeset b4457fe7fdb8 by Serhiy Storchaka in branch '3.6': Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if https://hg.python.org/cpython/rev/b4457fe7fdb8

New changeset 6093ce8eed6c by Serhiy Storchaka in branch 'default': Issue #27867: Function PySlice_GetIndicesEx() is deprecated and replaced with https://hg.python.org/cpython/rev/6093ce8eed6c

msg286903 - (view)

Author: Martin Panter (martin.panter) * (Python committer)

Date: 2017-02-04 01:37

Not a big deal, but the change produces compiler warnings with GCC 6.1.1:

/home/proj/python/cpython/Objects/bytesobject.c: In function ‘bytes_subscript’: /home/proj/python/cpython/Objects/bytesobject.c:1701:13: warning: ‘slicelength’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (cur = start, i = 0; i < slicelength; ^~~ /home/proj/python/cpython/Objects/listobject.c: In function ‘list_ass_subscript’: /home/proj/python/cpython/Objects/listobject.c:2602:13: warning: ‘slicelength’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (i = 0; i < slicelength; i++) { ^~~ /home/proj/python/cpython/Objects/unicodeobject.c: In function ‘unicode_subscript’: /home/proj/python/cpython/Objects/unicodeobject.c:14013:16: warning: ‘slicelength’ may be used uninitialized in this function [-Wmaybe-uninitialized] result = PyUnicode_New(slicelength, max_char); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/disk/home/proj/python/cpython/Modules/_elementtree.c: In function ‘element_ass_subscr’: /media/disk/home/proj/python/cpython/Modules/_elementtree.c:1896:50: warning: ‘slicelen’ may be used uninitialized in this function [-Wmaybe-uninitialized] self->extra->children[i + newlen - slicelen] = self->extra->children[i]; ~~~~~~~~~~~^~~~~~~~~~ /media/disk/home/proj/python/cpython/Modules/_ctypes/_ctypes.c: In function ‘Array_subscript’: /media/disk/home/proj/python/cpython/Modules/_ctypes/_ctypes.c:4327:16: warning: ‘slicelen’ may be used uninitialized in this function [-Wmaybe-uninitialized] np = PyUnicode_FromWideChar(dest, slicelen); ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

My build used to be free of warnings. This warning is enabled via -Wall. The reason is probably that the new macro skips the slicelength assignment if PySlice_Unpack() fails. Workarounds could be to assign or initialize slicelength to zero (at the call sites or inside the macro), or to compile with -Wno-maybe-uninitialized.

msg286910 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-02-04 05:41

Good point Martin. I missed this because warnings are not emitted in non-debug build and were emitted only once in incremental debug build. Your idea about initializing slicelength in a macro LGTM.

msg286932 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2017-02-04 09:08

New changeset d7b637af5a7e by Serhiy Storchaka in branch '3.5': Issue #27867: Silenced may-be-used-uninitialized warnings after https://hg.python.org/cpython/rev/d7b637af5a7e

New changeset 17d0cfc64a32 by Serhiy Storchaka in branch '2.7': Issue #27867: Silenced may-be-used-uninitialized warnings after https://hg.python.org/cpython/rev/17d0cfc64a32

New changeset b8fc4de84b9a by Serhiy Storchaka in branch '3.6': Issue #27867: Silenced may-be-used-uninitialized warnings after https://hg.python.org/cpython/rev/b8fc4de84b9a

New changeset af8315720e67 by Serhiy Storchaka in branch 'default': Issue #27867: Silenced may-be-used-uninitialized warnings after https://hg.python.org/cpython/rev/af8315720e67

msg286933 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2017-02-04 09:10

New changeset 110ec861e5ea by Serhiy Storchaka in branch '2.7': Issue #27867: Fixed merging error. https://hg.python.org/cpython/rev/110ec861e5ea

msg286940 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2017-02-04 10:00

New changeset faa1891d4d1237d6df0af4622ff520ccd6768e04 by Serhiy Storchaka in branch '3.5': Issue #27867: Silenced may-be-used-uninitialized warnings after https://github.com/python/cpython/commit/faa1891d4d1237d6df0af4622ff520ccd6768e04

msg286941 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2017-02-04 10:00

New changeset 745dda46d2e3e27206bb33188c770e1f6c73766e by Serhiy Storchaka in branch '2.7': Issue #27867: Silenced may-be-used-uninitialized warnings after https://github.com/python/cpython/commit/745dda46d2e3e27206bb33188c770e1f6c73766e

New changeset e9d77e9fce477b5589c7eb5e1b4179b1d8e1fecc by Serhiy Storchaka in branch '2.7': Issue #27867: Fixed merging error. https://github.com/python/cpython/commit/e9d77e9fce477b5589c7eb5e1b4179b1d8e1fecc

msg286944 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2017-02-04 10:00

New changeset faa1891d4d1237d6df0af4622ff520ccd6768e04 by Serhiy Storchaka in branch 'master': Issue #27867: Silenced may-be-used-uninitialized warnings after https://github.com/python/cpython/commit/faa1891d4d1237d6df0af4622ff520ccd6768e04

New changeset 8bd58e9c725a15854a99d19daf935fb08df77a05 by Serhiy Storchaka in branch 'master': Issue #27867: Silenced may-be-used-uninitialized warnings after https://github.com/python/cpython/commit/8bd58e9c725a15854a99d19daf935fb08df77a05

New changeset 65febbec9d09101f76a04efeef6b3dc7f9b06ee8 by Serhiy Storchaka in branch 'master': Issue #27867: Silenced may-be-used-uninitialized warnings after https://github.com/python/cpython/commit/65febbec9d09101f76a04efeef6b3dc7f9b06ee8

msg286945 - (view)

Author: Roundup Robot (python-dev) (Python triager)

Date: 2017-02-04 10:00

New changeset faa1891d4d1237d6df0af4622ff520ccd6768e04 by Serhiy Storchaka in branch '3.6': Issue #27867: Silenced may-be-used-uninitialized warnings after https://github.com/python/cpython/commit/faa1891d4d1237d6df0af4622ff520ccd6768e04

New changeset 8bd58e9c725a15854a99d19daf935fb08df77a05 by Serhiy Storchaka in branch '3.6': Issue #27867: Silenced may-be-used-uninitialized warnings after https://github.com/python/cpython/commit/8bd58e9c725a15854a99d19daf935fb08df77a05

msg290814 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-03-30 05:57

This issue is left open because it needs to add a porting guide in What's New.

See also a problem with breaking ABI in .

msg291258 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-04-07 08:41

If don't make PySlice_GetIndicesEx a macro when Py_LIMITED_API is not defined, it should be expanded to PySlice_Unpack and PySlice_AdjustIndices. PR 1023 does this for master branch. The patch is generated by Coccinelle's semantic patch.

msg291329 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-04-08 08:48

New changeset e41390aca51e4e3eb455cf3b70f5d656a2814db9 by Serhiy Storchaka in branch '2.7': bpo-27867: Expand the PySlice_GetIndicesEx macro. (#1023) (#1046) https://github.com/python/cpython/commit/e41390aca51e4e3eb455cf3b70f5d656a2814db9

msg291330 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-04-08 08:58

New changeset b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8 by Serhiy Storchaka in branch 'master': Expand the PySlice_GetIndicesEx macro. (#1023) https://github.com/python/cpython/commit/b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8

New changeset c26b19d5c7aba51b50a4d7fb5f8291036cb9da24 by Serhiy Storchaka in branch '3.6': Expand the PySlice_GetIndicesEx macro. (#1023) (#1046) https://github.com/python/cpython/commit/c26b19d5c7aba51b50a4d7fb5f8291036cb9da24

New changeset fa25f16a4499178d7d79c18d2d68be7f70594106 by Serhiy Storchaka in branch '3.5': Expand the PySlice_GetIndicesEx macro. (#1023) (#1045) https://github.com/python/cpython/commit/fa25f16a4499178d7d79c18d2d68be7f70594106

msg295285 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-06-06 17:51

PR 1973 adds a porting guide. This should be the last commit for this issue. Please make a review and suggest better wording.

msg302686 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-09-21 12:04

Could anyone please make review of the documentation?

msg302694 - (view)

Author: Henk-Jaap Wagenaar (cryvate) *

Date: 2017-09-21 15:09

@serhiy.storchaka: review done.

msg303905 - (view)

Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer)

Date: 2017-10-08 09:53

New changeset 4d3f084c035ad3dfd9f8479886c41b1b1823ace2 by Serhiy Storchaka in branch 'master': bpo-27867: Add a porting guide for PySlice_GetIndicesEx(). (#1973) https://github.com/python/cpython/commit/4d3f084c035ad3dfd9f8479886c41b1b1823ace2

History

Date

User

Action

Args

2022-04-11 14:58:35

admin

set

github: 72054

2017-10-08 09:54:02

serhiy.storchaka

set

status: open -> closed
resolution: fixed
stage: patch review -> resolved

2017-10-08 09:53:36

serhiy.storchaka

set

messages: +

2017-09-21 15:09:19

cryvate

set

nosy: + cryvate
messages: +

2017-09-21 12:04:14

serhiy.storchaka

set

messages: +

2017-06-06 17:51:34

serhiy.storchaka

set

messages: +

2017-06-06 17:41:53

serhiy.storchaka

set

pull_requests: + <pull%5Frequest2039>

2017-04-20 07:36:48

serhiy.storchaka

unlink

issue27863 dependencies

2017-04-08 08:58:45

serhiy.storchaka

set

messages: +

2017-04-08 08:49:00

serhiy.storchaka

set

messages: +

2017-04-08 07:16:13

serhiy.storchaka

set

pull_requests: + <pull%5Frequest1199>

2017-04-08 07:16:05

serhiy.storchaka

set

pull_requests: + <pull%5Frequest1198>

2017-04-08 07:15:27

serhiy.storchaka

set

pull_requests: + <pull%5Frequest1197>

2017-04-07 08:41:40

serhiy.storchaka

set

files: + PySlice_GetIndicesEx.cocci

messages: +

2017-04-07 08:34:06

serhiy.storchaka

set

pull_requests: + <pull%5Frequest1182>

2017-04-01 06:26:52

martin.panter

set

nosy: - martin.panter

2017-04-01 05:49:01

serhiy.storchaka

set

pull_requests: - <pull%5Frequest1038>

2017-03-31 16:36:31

dstufft

set

pull_requests: + <pull%5Frequest1038>

2017-03-30 05:57:10

serhiy.storchaka

set

messages: +

2017-02-06 08:32:27

serhiy.storchaka

unlink

issue29028 dependencies

2017-02-04 10:00:34

python-dev

set

messages: +

2017-02-04 10:00:32

python-dev

set

messages: +

2017-02-04 10:00:27

python-dev

set

messages: +

2017-02-04 10:00:25

python-dev

set

messages: +

2017-02-04 09:10:43

python-dev

set

messages: +

2017-02-04 09:08:31

python-dev

set

messages: +

2017-02-04 06:28:05

serhiy.storchaka

set

files: + PySlice_GetIndicesEx-silence-warnings.patch

2017-02-04 05:41:26

serhiy.storchaka

set

messages: +

2017-02-04 01:37:09

martin.panter

set

nosy: + martin.panter
messages: +

2017-01-25 11:29:12

python-dev

set

nosy: + python-dev
messages: +

2017-01-23 10:00:54

serhiy.storchaka

set

priority: normal -> high
files: + slice_get_indices_3.patch
messages: +

2017-01-03 12:54:28

vstinner

set

nosy: + vstinner

2016-12-29 22:37:55

serhiy.storchaka

set

files: + slice_get_indices_2.patch

messages: +

2016-12-29 20:08:28

serhiy.storchaka

set

assignee: serhiy.storchaka
versions: + Python 2.7, Python 3.7

2016-12-29 20:07:21

serhiy.storchaka

link

issue29028 dependencies

2016-09-10 08:43:54

ncoghlan

set

messages: +

2016-09-09 08:04:22

serhiy.storchaka

set

messages: +

2016-09-09 07:20:49

ncoghlan

set

messages: +

2016-09-08 21:49:17

serhiy.storchaka

set

messages: +

2016-08-31 04:06:34

ncoghlan

set

nosy: + ncoghlan
messages: +

2016-08-30 20:40:21

terry.reedy

set

messages: +

2016-08-30 17:47:55

serhiy.storchaka

set

files: + slice_get_indices.patch
keywords: + patch
messages: +

stage: needs patch -> patch review

2016-08-28 06:50:52

serhiy.storchaka

set

messages: +

2016-08-28 05:46:19

terry.reedy

set

messages: +

2016-08-28 04:35:23

serhiy.storchaka

set

messages: +

2016-08-27 21:51:04

terry.reedy

set

messages: +

2016-08-27 10:49:21

serhiy.storchaka

set

messages: +

2016-08-27 10:42:55

serhiy.storchaka

link

issue27863 dependencies

2016-08-26 19:21:04

terry.reedy

set

nosy: + terry.reedy
messages: +

2016-08-26 17:59:57

serhiy.storchaka

set

nosy: + mark.dickinson, serhiy.storchaka

type: crash
stage: needs patch

2016-08-26 15:51:25

tehybel

create