Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix serious reference counting issue in
nb_error.h
This is a quite serious error affecting nanobind on Python versions 3.11 and earlier. The ``python_error::traceback()`` incorrectly stole a reference, likely causing undefined behavior via use-after-free. This function was called as part of ``python_error::what()``, which is a frequently used routine that generates a readable error message + backtrace on the C++ side.
- Loading branch information