Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(iast): remove unneeded atexit handler #8565

Merged
merged 10 commits into from
Mar 4, 2024
3 changes: 0 additions & 3 deletions ddtrace/appsec/_iast/_taint_tracking/_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ PYBIND11_MODULE(_native, m)
{
initializer = make_unique<Initializer>();
initializer->create_context();
// Cleanup code to be run at the end of the interpreter lifetime:
auto atexit = py::module::import("atexit");
atexit.attr("register")(py::cpp_function([] { initializer.reset(); }));

m.doc() = "Native Python module";

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
Vulnerability Management for Code-level (IAST): Fixes an issue where an atexit handler could lead to a segmentation fault.
Loading