Skip to content

Commit

Permalink
still weird linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelyangdog committed Oct 2, 2024
1 parent 555153b commit 8b55ef0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ddtrace/appsec/_iast/_taint_tracking/Utils/StringUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,10 @@ new_pyobject_id(PyObject* tainted_object)
return nullptr;

// Check that it's aligned correctly
if (reinterpret_cast<uintptr_t>(tainted_object) % alignof(PyObject) != 0)
return tainted_object;
if (reinterpret_cast<uintptr_t>(tainted_object) % alignof(PyObject) != 0) return tainted_object;

// Try to safely access ob_type
if (const PyObject* temp = tainted_object;!temp->ob_type)
return tainted_object;
if (const PyObject* temp = tainted_object;!temp->ob_type) return tainted_object;

py::gil_scoped_acquire acquire;

Expand Down

0 comments on commit 8b55ef0

Please sign in to comment.