]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Patch by Ping (SF bug 415879, Exception.__init__() causes segfault):
authorGuido van Rossum <guido@python.org>
Fri, 13 Apr 2001 15:42:40 +0000 (15:42 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 13 Apr 2001 15:42:40 +0000 (15:42 +0000)
commitd9994e0115e1acfd6d3d97a048af9616778af95c
tree647dde43a572bbd84ec2e41eb60a4e352963b85c
parentd03f8fe95e6581062463694c4330b8b4024ab545
Patch by Ping (SF bug 415879, Exception.__init__() causes segfault):

   Calling an unbound method on a C extension class without providing
   an instance can yield a segfault.  Try "Exception.__init__()" or
   "ValueError.__init__()".

   This is a simple fix. The error-reporting bits in call_method
   mistakenly treat the misleadingly-named variable "func" as a
   function, when in fact it is a method.

   If we let get_func_name take care of the work, all is fine.
Python/ceval.c