File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 7373- ([ @rmadsen-ks ] ( https://github.com/rmadsen-ks ) )
7474- ([ @stonebig ] ( https://github.com/stonebig ) )
7575- ([ @testrunner123 ] ( https://github.com/testrunner123 ) )
76+ - ([ @DanBarzilian ] ( https://github.com/DanBarzilian ) )
7677
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
1313
1414### Fixed
1515
16+ - Fix incorrect dereference of wrapper object in tp_repr, which may result in a program crash
17+
1618## [ 2.5.0] [ ] - 2020-06-14
1719
1820This version improves performance on benchmarks significantly compared to 2.3.
Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ public static IntPtr tp_repr(IntPtr ob)
266266
267267 //otherwise use the standard object.__repr__(inst)
268268 IntPtr args = Runtime . PyTuple_New ( 1 ) ;
269+ Runtime . XIncref ( ob ) ;
269270 Runtime . PyTuple_SetItem ( args , 0 , ob ) ;
270271 IntPtr reprFunc = Runtime . PyObject_GetAttrString ( Runtime . PyBaseObjectType , "__repr__" ) ;
271272 var output = Runtime . PyObject_Call ( reprFunc , args , IntPtr . Zero ) ;
You can’t perform that action at this time.
0 commit comments