Skip to content

Commit

Permalink
semgrep java lang improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Jul 16, 2022
1 parent f6b4e9f commit 50df486
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public UserData deserializeObject(InputStream receivedFile) throws IOException,
}

public UserData deserializeObject(InputStream receivedFile) throws IOException, ClassNotFoundException {
// this pattern not yet working. See https://github.com/returntocorp/semgrep/issues/717
// This should have a To Do comment, but I want this rule available so I'm leaving it out for now.
// ruleid:object_deserialization
try (ObjectInputStream in = new ObjectInputStream(receivedFile)) {
return (UserData) in.readObject();
} catch (IOException e) {
Expand Down

0 comments on commit 50df486

Please sign in to comment.