<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Objects/structseq.c, branch travis-macOS</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>Call PyObject_GC_UnTrack in structseq dealloc (GH-13751)</title>
<updated>2019-06-02T20:52:49+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-06-02T20:52:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3caf4de6f05f68c3a175f4d8ce870d7a0016622a'/>
<id>3caf4de6f05f68c3a175f4d8ce870d7a0016622a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37126: Allow structseq objects to be tracked by the GC (GH-13729)</title>
<updated>2019-06-02T14:45:13+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-06-02T14:45:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7ffcf848df214135abeea7f6c6faa4135fd0928f'/>
<id>7ffcf848df214135abeea7f6c6faa4135fd0928f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35810: Incref heap-allocated types in PyObject_Init (GH-11661)</title>
<updated>2019-03-27T11:52:18+00:00</updated>
<author>
<name>Eddie Elizondo</name>
<email>eduardo.elizondorueda@gmail.com</email>
</author>
<published>2019-03-27T11:52:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=364f0b0f19cc3f0d5e63f571ec9163cf41c62958'/>
<id>364f0b0f19cc3f0d5e63f571ec9163cf41c62958</id>
<content type='text'>
* Incref heap-allocated types in PyObject_Init
* Add documentation and porting notes to What's New
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Incref heap-allocated types in PyObject_Init
* Add documentation and porting notes to What's New
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36398: Fix a possible crash in structseq_repr(). (GH-12492)</title>
<updated>2019-03-22T07:24:34+00:00</updated>
<author>
<name>Zackery Spytz</name>
<email>zspytz@gmail.com</email>
</author>
<published>2019-03-22T07:24:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=93e8012f2cabd84f30b52e19fd3dc557efa9f8af'/>
<id>93e8012f2cabd84f30b52e19fd3dc557efa9f8af</id>
<content type='text'>
If the first PyUnicode_DecodeUTF8() call fails in structseq_repr(),
_PyUnicodeWriter_Dealloc() will be called on an uninitialized
_PyUnicodeWriter.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the first PyUnicode_DecodeUTF8() call fails in structseq_repr(),
_PyUnicodeWriter_Dealloc() will be called on an uninitialized
_PyUnicodeWriter.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36365: Rewrite structseq_repr() using _PyUnicodeWriter (GH-12440)</title>
<updated>2019-03-19T23:05:51+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-03-19T23:05:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c70ab02df2894c34da2223fc3798c0404b41fd79'/>
<id>c70ab02df2894c34da2223fc3798c0404b41fd79</id>
<content type='text'>
No longer limit repr(structseq) to 512 bytes. Use _PyUnicodeWriter
for better performance and to write directly Unicode rather than
encoding repr() value to UTF-8 and then decoding from UTF-8.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No longer limit repr(structseq) to 512 bytes. Use _PyUnicodeWriter
for better performance and to write directly Unicode rather than
encoding repr() value to UTF-8 and then decoding from UTF-8.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)</title>
<updated>2019-03-13T20:59:55+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-03-13T20:59:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a'/>
<id>d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36030: Add _PyTuple_FromArray() function (GH-11954)</title>
<updated>2019-02-25T16:59:12+00:00</updated>
<author>
<name>Sergey Fedoseev</name>
<email>fedoseev.sergey@gmail.com</email>
</author>
<published>2019-02-25T16:59:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=234531b4462b20d668762bd78406fd2ebab129c9'/>
<id>234531b4462b20d668762bd78406fd2ebab129c9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix compiler warning in structseq_repr() (GH-10841)</title>
<updated>2018-12-01T01:46:40+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-12-01T01:46:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=989052047eea7f35da0d7ca268791b2442ee1553'/>
<id>989052047eea7f35da0d7ca268791b2442ee1553</id>
<content type='text'>
Replace strncpy() with memcpy() in structseq_repr() to fix the
following compiler warning:

Objects/structseq.c:187:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
     strncpy(pbuf, typ-&gt;tp_name, len);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/structseq.c:185:11: note: length computed here
     len = strlen(typ-&gt;tp_name) &gt; TYPE_MAXSIZE ? TYPE_MAXSIZE :

The function writes the terminating NUL byte later.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace strncpy() with memcpy() in structseq_repr() to fix the
following compiler warning:

Objects/structseq.c:187:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
     strncpy(pbuf, typ-&gt;tp_name, len);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/structseq.c:185:11: note: length computed here
     len = strlen(typ-&gt;tp_name) &gt; TYPE_MAXSIZE ? TYPE_MAXSIZE :

The function writes the terminating NUL byte later.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34784: Implement correct cleanup in PyStructSequence new implementation (GH-10536)</title>
<updated>2018-11-15T02:03:57+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2018-11-15T02:03:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bfb855bef6b428d639693caaf4e4c84cbb8a2f51'/>
<id>bfb855bef6b428d639693caaf4e4c84cbb8a2f51</id>
<content type='text'>
PyTuple_Pack can fail and return NULL. If this happens, then PyType_FromSpecWithBases will incorrectly create a new type without bases. Also, it will crash on the Py_DECREF that follows. Also free members and type in error conditions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyTuple_Pack can fail and return NULL. If this happens, then PyType_FromSpecWithBases will incorrectly create a new type without bases. Also, it will crash on the Py_DECREF that follows. Also free members and type in error conditions.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34784: Fix PyStructSequence_NewType with heap-allocated StructSequence (GH-9665)</title>
<updated>2018-11-13T12:09:31+00:00</updated>
<author>
<name>Eddie Elizondo</name>
<email>eduardo.elizondorueda@gmail.com</email>
</author>
<published>2018-11-13T12:09:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=474eedfb3d1b6fecbd749f36bf4a987cf4a00b44'/>
<id>474eedfb3d1b6fecbd749f36bf4a987cf4a00b44</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
