Skip to content

Commit 54ff842

Browse files
committed
Adjust the deobfuscation status to partial if the signature is not properly deobfuscated
1 parent 0f1d277 commit 54ff842

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/sentry/profiles/task.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,11 @@ def _deobfuscate(profile: Profile, project: Project) -> None:
632632
new_frame = mapped[-1]
633633
method["class_name"] = new_frame.class_name
634634
method["name"] = new_frame.method
635-
method["data"] = {"deobfuscation_status": "deobfuscated"}
635+
method["data"] = {
636+
"deobfuscation_status": "deobfuscated"
637+
if method.get("signature", None)
638+
else "partial"
639+
}
636640

637641
if new_frame.file:
638642
method["source_file"] = new_frame.file
@@ -659,6 +663,7 @@ def _deobfuscate(profile: Profile, project: Project) -> None:
659663
# the frame we deobfuscated, we update it to set
660664
# the deobfuscated signature.
661665
if len(method["inline_frames"]) > 0:
666+
method["inline_frames"][0]["data"] = method["data"]
662667
method["inline_frames"][0]["signature"] = method.get("signature", "")
663668
else:
664669
mapped_class = mapper.remap_class(method["class_name"])

0 commit comments

Comments
 (0)