-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[taint] Add class annotation based taint matcher
Summary: Add class annotation based taint matcher Reviewed By: dulmarod Differential Revision: D50269417 Privacy Context Container: L1122176 fbshipit-source-id: bb3431cb45e15333d585e20e4daf5bbf0eb2e95a
- Loading branch information
1 parent
95ef448
commit 95db034
Showing
8 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
infer/tests/codetoanalyze/java/pulse/taint/InferTaintSources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package codetoanalyze.java.pulse; | ||
|
||
/** | ||
* WARNING! These methods are for testing the taint analysis only! Don't use them in models or in | ||
* real code. | ||
*/ | ||
public class InferTaintSources { | ||
|
||
@SensitiveSourceMarker | ||
static class Sources { | ||
|
||
static Object source1() { | ||
return new Object(); | ||
} | ||
|
||
static Object source2() { | ||
return new Object(); | ||
} | ||
} | ||
|
||
static class NotSources { | ||
|
||
static Object notSource() { | ||
return new Object(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters