Skip to content

Commit

Permalink
chore: Fix some wrong annotations (#3476)
Browse files Browse the repository at this point in the history
test plan:
osemgrep test on those dirs do not report any more warnings
about wrong annotations
  • Loading branch information
aryx authored Sep 23, 2024
1 parent 46fc340 commit 8ce8781
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion python/lang/security/audit/conn_recv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
output = {}
connection.send(output)

# toodoruleid:multiprocessing.recv
# todoruleid:multiprocessing.recv
rx = connection.recv()
3 changes: 0 additions & 3 deletions python/lang/security/deserialization/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ def serialize_exploit():

# Application insecurely deserializes the attacker's serialized data
def insecure_deserialization(exploit_code):
# todok: avoid-pickle
# _pickle.loads(exploit_code)

# ruleid: avoid-pickle
_pickle.loads(exploit_code)

Expand Down

0 comments on commit 8ce8781

Please sign in to comment.