<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Objects, branch v2.4.4</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>Backport rev 51262 from trunk -- squashes a compiler warning on Windows</title>
<updated>2006-10-09T23:37:58+00:00</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-10-09T23:37:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0af9b87953a450145a1557fc93fa4a82463263b1'/>
<id>0af9b87953a450145a1557fc93fa4a82463263b1</id>
<content type='text'>
about truly wrong code.

Checkin comment from 51262:

Can't return NULL from a void function.  If there is a memory error,
about the best we can do is call PyErr_WriteUnraisable and go on.
We won't be able to do the call below either, so verify delstr is valid.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
about truly wrong code.

Checkin comment from 51262:

Can't return NULL from a void function.  If there is a memory error,
about the best we can do is call PyErr_WriteUnraisable and go on.
We won't be able to do the call below either, so verify delstr is valid.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport of the pieces of trunk rev 46589 relevant to</title>
<updated>2006-10-09T20:24:45+00:00</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-10-09T20:24:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2b37ea40871ec45cb1fb6d98a2696bcaf4cf6583'/>
<id>2b37ea40871ec45cb1fb6d98a2696bcaf4cf6583</id>
<content type='text'>
fixing an unlikely crash bug in dict resizing, SF
bug 1456209.

The rest of rev 46589 changes whether Python suppresses
exceptions during some dict-related comparisons.  While I
think that's a good idea, it does change visible behavior at
times, and there was already some complaining about that on
the trunk.  Not a good idea for backporting.  The part of
46589 checked in here can at worst stop segfaults, and I doubt
anyone will gripe about that ;-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixing an unlikely crash bug in dict resizing, SF
bug 1456209.

The rest of rev 46589 changes whether Python suppresses
exceptions during some dict-related comparisons.  While I
think that's a good idea, it does change visible behavior at
times, and there was already some complaining about that on
the trunk.  Not a good idea for backporting.  The part of
46589 checked in here can at worst stop segfaults, and I doubt
anyone will gripe about that ;-)
</pre>
</div>
</content>
</entry>
<entry>
<title>[Partial backport of r45947 | neal.norwitz]</title>
<updated>2006-10-09T18:42:49+00:00</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-09T18:42:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2fafa251dba5df1f90326a825ac6de2b6b906bc3'/>
<id>2fafa251dba5df1f90326a825ac6de2b6b906bc3</id>
<content type='text'>
Fix problems found by Coverity.

longobject.c: also fix an ssize_t problem
  &lt;a&gt; could have been NULL, so hoist the size calc to not use &lt;a&gt;.

[The ssize_t change isn't needed for 2.4.  The other changes in this revision
 are to modules not present in 2.4. --amk]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix problems found by Coverity.

longobject.c: also fix an ssize_t problem
  &lt;a&gt; could have been NULL, so hoist the size calc to not use &lt;a&gt;.

[The ssize_t change isn't needed for 2.4.  The other changes in this revision
 are to modules not present in 2.4. --amk]
</pre>
</div>
</content>
</entry>
<entry>
<title>[Backport r42951 | guido.van.rossum]</title>
<updated>2006-10-09T18:19:01+00:00</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-09T18:19:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=e0235ae1a9a723e3465e10b91333c2e5e2a30618'/>
<id>e0235ae1a9a723e3465e10b91333c2e5e2a30618</id>
<content type='text'>
Fix three nits found by Coverity, adding null checks and comments.

[This commit only makes two changes.  One change in the original patch
 is just adding a comment, and another adds a 'base != NULL' check to
 silence Coverity, but a comment adds that that base is never going to
 be NULL.  I didn't backport that change. --amk]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix three nits found by Coverity, adding null checks and comments.

[This commit only makes two changes.  One change in the original patch
 is just adding a comment, and another adds a 'base != NULL' check to
 silence Coverity, but a comment adds that that base is never going to
 be NULL.  I didn't backport that change. --amk]
</pre>
</div>
</content>
</entry>
<entry>
<title>[Backport r43695 | neal.norwitz]</title>
<updated>2006-10-06T19:26:14+00:00</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-06T19:26:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=78754c13ceb37117d94a0dc203ab914c4fd1c8c4'/>
<id>78754c13ceb37117d94a0dc203ab914c4fd1c8c4</id>
<content type='text'>
Remove dead code (reported by HP compiler).

Can probably be backported if anyone cares.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove dead code (reported by HP compiler).

Can probably be backported if anyone cares.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Backport r50679 | neal.norwitz.  This is the last Klocwork bug to be</title>
<updated>2006-10-05T19:42:49+00:00</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T19:42:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3e3566937e3597651b06d95aef9b1b75d0f6899d'/>
<id>3e3566937e3597651b06d95aef9b1b75d0f6899d</id>
<content type='text'>
 backported.]

Use sizeof(buffer) instead of duplicating the constants to ensure they won't
be wrong.

The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1
to strncat.  strncat copies n+1 bytes from src (not dest).

Reported by Klocwork #58.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 backported.]

Use sizeof(buffer) instead of duplicating the constants to ensure they won't
be wrong.

The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1
to strncat.  strncat copies n+1 bytes from src (not dest).

Reported by Klocwork #58.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Backport r50681 | neal.norwitz]</title>
<updated>2006-10-05T19:38:17+00:00</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T19:38:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=32f378b0d925d960c3f72c0fd646c7b1b3237b5f'/>
<id>32f378b0d925d960c3f72c0fd646c7b1b3237b5f</id>
<content type='text'>
PyFunction_SetDefaults() is documented as taking None or a tuple.
A NULL would crash the PyTuple_Check().  Now make NULL return a SystemError.

Reported by Klocwork #73.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyFunction_SetDefaults() is documented as taking None or a tuple.
A NULL would crash the PyTuple_Check().  Now make NULL return a SystemError.

Reported by Klocwork #73.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Backport r51246 | neal.norwitz]</title>
<updated>2006-10-05T19:25:26+00:00</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T19:25:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6d0bc3e9f4ca48e43b823f7c4207d5549824a24a'/>
<id>6d0bc3e9f4ca48e43b823f7c4207d5549824a24a</id>
<content type='text'>
Handle a whole lot of failures from PyString_FromInternedString().

Should fix most of Klocwork 234-272.

[Backport r51400 | neal.norwitz]

Move initialization of interned strings to before allocating the
object so we don't leak op.  (Fixes an earlier patch to this code)

Klockwork #350
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handle a whole lot of failures from PyString_FromInternedString().

Should fix most of Klocwork 234-272.

[Backport r51400 | neal.norwitz]

Move initialization of interned strings to before allocating the
object so we don't leak op.  (Fixes an earlier patch to this code)

Klockwork #350
</pre>
</div>
</content>
</entry>
<entry>
<title>[Partial backport of r51218 | neal.norwitz -- the changes to ast.c, symtable.c,</title>
<updated>2006-10-05T18:37:08+00:00</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T18:37:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=978809518d823c6f67ed7be2563de52275ea8623'/>
<id>978809518d823c6f67ed7be2563de52275ea8623</id>
<content type='text'>
 and _elementtree.c weren't applicable]

Klocwork made another run and found a bunch more problems.
This is the first batch of fixes that should be easy to verify based on context.
This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 and _elementtree.c weren't applicable]

Klocwork made another run and found a bunch more problems.
This is the first batch of fixes that should be easy to verify based on context.
This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
</pre>
</div>
</content>
</entry>
<entry>
<title>[Backport r50743 | neal.norwitz]</title>
<updated>2006-10-05T18:08:58+00:00</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-10-05T18:08:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8a28c164308f2683ba4f934ef5d2d4c3e574ba3c'/>
<id>8a28c164308f2683ba4f934ef5d2d4c3e574ba3c</id>
<content type='text'>
Handle allocation failures gracefully.  Found with failmalloc.
Many (all?) of these could be backported.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handle allocation failures gracefully.  Found with failmalloc.
Many (all?) of these could be backported.
</pre>
</div>
</content>
</entry>
</feed>
