Description
The Rust <--> Python binding was not handling properly errors happening on the Rust side. More precisely, memory behind pointers was deallocated without checking that it had actually been allocated at some point.
When an error occurs in a rust API call, the memory behind the result pointer is often not allocated as the error happens before the result is created.
As a result, instead of getting a python exception, you receive a segmentation fault.
Description The Rust <--> Python binding was not handling properly errors happening on the Rust side. More precisely, memory behind pointers was deallocated without checking that it had actually been allocated at some point. When an error occurs in a rust API call, the memory behind the result pointer is often not allocated as the error happens before the result is created. As a result, instead of getting a python exception, you receive a segmentation fault.