[issue40425] Refleak in CDataObject

2020-04-28 Thread Cubi
New submission from Cubi : String buffers are not freed when pointers to them (created via ctypes.cast) are deleted, even though those pointers hold references to the string buffer (in tagCDataObject.b_objects, I think). Code examples can be found on StackOverflow.com [1]. Thanks to Mark

[issue29751] PyLong_FromString fails on decimals with leading zero and base=0

2017-03-07 Thread Cubi
New submission from Cubi: Calling PyLong_FromString(str, NULL, 0) fails, if str is a string containing a decimal number with leading zeros, even though such strings should be parsed as decimal numbers according to the documentation: "If base is 0, the radix will be determined