<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/dtoa.c, branch 2.7</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>bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12332)</title>
<updated>2019-03-14T16:19:52+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-03-14T16:19:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b14057877fd897eaee7bc6626682fc6092b6bbd2'/>
<id>b14057877fd897eaee7bc6626682fc6092b6bbd2</id>
<content type='text'>
Fix an unlikely memory leak on conversion from string to float in the
function _Py_dg_strtod() used by float(str), complex(str),
pickle.load(), marshal.load(), etc.

Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label:
rewrite memory management in this function to always release all
memory before exiting the function. Initialize variables to NULL, and
set them to NULL after calling Bfree() at the "cont:" label.

Note: Bfree(NULL) is well defined: it does nothing.

(cherry picked from commit 9776b0636ae39668d3ce1c006d4be01dad01bf9f)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix an unlikely memory leak on conversion from string to float in the
function _Py_dg_strtod() used by float(str), complex(str),
pickle.load(), marshal.load(), etc.

Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label:
rewrite memory management in this function to always release all
memory before exiting the function. Initialize variables to NULL, and
set them to NULL after calling Bfree() at the "cont:" label.

Note: Bfree(NULL) is well defined: it does nothing.

(cherry picked from commit 9776b0636ae39668d3ce1c006d4be01dad01bf9f)</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float.</title>
<updated>2013-11-26T16:38:25+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2013-11-26T16:38:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c2f8c81af02519952a857baebb5c0c9048033009'/>
<id>c2f8c81af02519952a857baebb5c0c9048033009</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove three unneeded variable assignments.</title>
<updated>2010-05-05T20:20:19+00:00</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2010-05-05T20:20:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=0b03f10afb301560c711b953b6ca2ecef3181eed'/>
<id>0b03f10afb301560c711b953b6ca2ecef3181eed</id>
<content type='text'>
Found using Clang's static analyzer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Found using Clang's static analyzer.
</pre>
</div>
</content>
</entry>
<entry>
<title>dtoa.c fix from upstream that fixes incorrectly rounded results for certain subnormals that are also halfway cases.</title>
<updated>2010-01-23T21:25:53+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2010-01-23T21:25:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=8cd0a66a0fd7bb7d69153906942930c2e8c3dd17'/>
<id>8cd0a66a0fd7bb7d69153906942930c2e8c3dd17</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #7743:  Add checks for zero inputs to the lshift and mult functions;</title>
<updated>2010-01-23T20:48:56+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2010-01-23T20:48:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=fc5290458d00e3eebf82dd914fd2848b7e3f7e87'/>
<id>fc5290458d00e3eebf82dd914fd2848b7e3f7e87</id>
<content type='text'>
this fixes the first bug described in issue #7743.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this fixes the first bug described in issue #7743.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #7743:  Fix a potential incorrect rounding bug in dtoa.c (2nd bug</title>
<updated>2010-01-22T17:04:07+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2010-01-22T17:04:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=adcda3400f8ae931139605b8d1fcfede4c1c6916'/>
<id>adcda3400f8ae931139605b8d1fcfede4c1c6916</id>
<content type='text'>
in issue 7743).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in issue 7743).
</pre>
</div>
</content>
</entry>
<entry>
<title>Additional explanatory comments for _Py_dg_strtod.</title>
<updated>2010-01-20T21:23:25+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2010-01-20T21:23:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ca6ea567184941a62f49f911a16d5bc3515c634c'/>
<id>ca6ea567184941a62f49f911a16d5bc3515c634c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't try to put a value into a NULL pointer.</title>
<updated>2010-01-20T18:02:41+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2010-01-20T18:02:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=19428060139151e3047283f132e8baf16436745e'/>
<id>19428060139151e3047283f132e8baf16436745e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Various dtoa.c cleanups.  1. Despagghetify _Py_dg_strtod parsing code</title>
<updated>2010-01-20T17:36:31+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2010-01-20T17:36:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4141d65fb7eacccee58b2fa462b56a2410e67777'/>
<id>4141d65fb7eacccee58b2fa462b56a2410e67777</id>
<content type='text'>
and exit points.  2. Simplify bigcomp comparison loop.  3. Don't set
ERANGE on _Py_dg_strtod underflow (it was set inconsistently anyway).
4. Remove unused dsign field from BCinfo struct.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and exit points.  2. Simplify bigcomp comparison loop.  3. Don't set
ERANGE on _Py_dg_strtod underflow (it was set inconsistently anyway).
4. Remove unused dsign field from BCinfo struct.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #7632: When Py_USING_MEMORY_DEBUGGER is defined, disable the</title>
<updated>2010-01-17T20:57:56+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2010-01-17T20:57:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9481c576cd5e820f2a23b57481366f37df3dbbf9'/>
<id>9481c576cd5e820f2a23b57481366f37df3dbbf9</id>
<content type='text'>
private memory allocation scheme in dtoa.c, along with a piece of code
that caches powers of 5 for future use.  This makes it easier to
detect dtoa.c memory leaks with Valgrind or similar tools.

Patch by Stefan Krah.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
private memory allocation scheme in dtoa.c, along with a piece of code
that caches powers of 5 for future use.  This makes it easier to
detect dtoa.c memory leaks with Valgrind or similar tools.

Patch by Stefan Krah.
</pre>
</div>
</content>
</entry>
</feed>
