[issue27783] potential use of unitialized memory in operator.methodcaller

2016-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11a9bca71528 by Benjamin Peterson in branch '2.7': rearrange methodcaller_new so that the main error case does not cause uninitialized memory usage (closes #27783) https://hg.python.org/cpython/rev/11a9bca71528 New changeset 8e3b9bf917a7 by Benjami

[issue27783] potential use of unitialized memory in operator.methodcaller

2016-08-16 Thread Benjamin Peterson
New submission from Benjamin Peterson: Thomas E Hybel reports: This vulnerability exists in /Modules/_operator.c in the function methodcaller_new. Here is the problematic code: mc = PyObject_GC_New(methodcallerobject, &methodcaller_type); if (mc == NULL) return NULL; ne