Skip to content

chore(iast): normalize iast logs #13243

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

Merged
merged 1 commit into from
Apr 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions ddtrace/appsec/_iast/_taint_tracking/aspects.py
Original file line number Diff line number Diff line change
@@ -69,9 +69,6 @@
str_aspect = aspects.str_aspect

__all__ = [
"_aspect_rsplit",
"_aspect_split",
"_aspect_splitlines",
"add_aspect",
"add_inplace_aspect",
"bytearray_aspect",
@@ -136,7 +133,7 @@ def stringio_aspect(orig_function: Optional[Callable], flag_added_args: int, *ar
try:
copy_ranges_from_strings(args[0], result)
except Exception as e:
iast_propagation_error_log(f"IAST propagation error. stringio_aspect. {e}")
iast_propagation_error_log(f"stringio_aspect. {e}")
return result


@@ -154,7 +151,7 @@ def bytesio_aspect(orig_function: Optional[Callable], flag_added_args: int, *arg
try:
copy_ranges_from_strings(args[0], result)
except Exception as e:
iast_propagation_error_log(f"IAST propagation error. bytesio_aspect. {e}")
iast_propagation_error_log(f"bytesio_aspect. {e}")
return result


@@ -315,7 +312,7 @@ def zfill_aspect(orig_function: Optional[Callable], flag_added_args: int, *args:
)
taint_pyobject_with_ranges(result, tuple(ranges_new))
except Exception as e:
iast_propagation_error_log(f"format_aspect. {e}")
iast_propagation_error_log(f"zfill_aspect. {e}")

return result