The _lsprof module could crash the interpreter if it was given an external
commit52bd1748a9aaa18ad0d421bcbf2fb0281123cf41
authorbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 29 Sep 2008 03:41:21 +0000 (29 03:41 +0000)
committerbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Mon, 29 Sep 2008 03:41:21 +0000 (29 03:41 +0000)
tree450524a6e5aaf36ceecdc8df675292c0b7248a62
parente584cd0b4e98781c0569a6586afda87e3338c77a
The _lsprof module could crash the interpreter if it was given an external
timer that did not return a float and a timer was still running when the
Profiler object was garbage collected.

Fixes issue 3895.
Code review by Benjamin Peterson.

git-svn-id: http://svn.python.org/projects/python/trunk@66677 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/test/test_cprofile.py
Misc/NEWS
Modules/_lsprof.c