]> granicus.if.org Git - python/commit
Fix problems found by Coverity.
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 10 May 2006 06:57:58 +0000 (06:57 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 10 May 2006 06:57:58 +0000 (06:57 +0000)
commitc6a989ac3a2ce1f52f48acfb73d04b604ba173b1
treebce50037904969634cf2ed60d969829dd0283f95
parentad2ef33245bdd90bf0e80824dbba732b17fdf6b6
Fix problems found by Coverity.

longobject.c: also fix an ssize_t problem
  <a> could have been NULL, so hoist the size calc to not use <a>.

_ssl.c: under fail: self is DECREF'd, but it would have been NULL.

_elementtree.c: delete self if there was an error.

_csv.c: I'm not sure if lineterminator could have been anything other than
a string.  However, other string method calls are checked, so check this
one too.
Modules/_csv.c
Modules/_elementtree.c
Modules/_ssl.c
Objects/longobject.c