-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Porting additional demonstration of pybind11 Undefined Behavior in ha…
…ndling of shared_ptr holder. test_make_drvd_up_cast_pass_drvd fails with pybind11 (segfault) but passes with Boost.Python. The root cause is the explicit cast in the pybind11 code here: https://github.com/pybind/pybind11/blob/30eb39ed79d1e2eeff15219ac00773034300a5e6/include/pybind11/pybind11.h#L1505 init_holder(inst, v_h, (const holder_type *) holder_ptr, v_h.value_ptr<type>());
- Loading branch information
Ralf W. Grosse-Kunstleve
committed
Dec 22, 2020
1 parent
debf3a5
commit 7d7494a
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters