Skip to content
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

[Java-Integration] : Push in and test on java-callgraph component #539

Merged
merged 4 commits into from
Oct 6, 2022

Conversation

arthurscchan
Copy link
Contributor

@arthurscchan arthurscchan commented Oct 6, 2022

For step 1 and 2 of issue #536

Signed-off-by: Arthur Chan [email protected]

@arthurscchan
Copy link
Contributor Author

--------------------Sample Callgraph Output: test1.jar--------------------
C:TestFuzzer java.lang.Object
C:TestFuzzer TestFuzzer
M:TestFuzzer:() (O)java.lang.Object:()

--------------------Sample Callgraph Output: test2.jar--------------------
C:TestFuzzer java.lang.Object
C:TestFuzzer com.code_intelligence.jazzer.api.FuzzedDataProvider
C:TestFuzzer TestFuzzer
M:TestFuzzer:() (O)java.lang.Object:()
M:TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (I)com.code_intelligence.jazzer.api.FuzzedDataProvider:consumeInt(int,int)
M:TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (O)TestFuzzer:()
M:TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (M)TestFuzzer:function1()
M:TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (S)TestFuzzer:function2()

--------------------Sample Callgraph Output: test3.jar--------------------
C:FunctionTest java.lang.Object
C:FunctionTest FunctionTest
C:TestFuzzer java.lang.Object
C:TestFuzzer com.code_intelligence.jazzer.api.FuzzedDataProvider
C:TestFuzzer FunctionTest
C:TestFuzzer TestFuzzer
M:FunctionTest:() (O)java.lang.Object:()
M:TestFuzzer:() (O)java.lang.Object:()
M:TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (I)com.code_intelligence.jazzer.api.FuzzedDataProvider:consumeInt(int,int)
M:TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (O)FunctionTest:()
M:TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (M)FunctionTest:function1()
M:TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (S)FunctionTest:function2()

--------------------Sample Callgraph Output: test4.jar--------------------
C:Fuzz.FunctionTest java.lang.Object
C:Fuzz.FunctionTest Fuzz.FunctionTest
C:Fuzz.TestFuzzer java.lang.Object
C:Fuzz.TestFuzzer com.code_intelligence.jazzer.api.FuzzedDataProvider
C:Fuzz.TestFuzzer Fuzz.FunctionTest
C:Fuzz.TestFuzzer Fuzz.TestFuzzer
M:Fuzz.FunctionTest:() (O)java.lang.Object:()
M:Fuzz.TestFuzzer:() (O)java.lang.Object:()
M:Fuzz.TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (I)com.code_intelligence.jazzer.api.FuzzedDataProvider:consumeInt(int,int)
M:Fuzz.TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (O)Fuzz.FunctionTest:()
M:Fuzz.TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (M)Fuzz.FunctionTest:function1()
M:Fuzz.TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (S)Fuzz.FunctionTest:function2()

--------------------Sample Callgraph Output: test5.jar--------------------
C:Function.FunctionTest java.lang.Object
C:Function.FunctionTest Function.FunctionTest
C:Fuzz.TestFuzzer java.lang.Object
C:Fuzz.TestFuzzer com.code_intelligence.jazzer.api.FuzzedDataProvider
C:Fuzz.TestFuzzer Function.FunctionTest
C:Fuzz.TestFuzzer Fuzz.TestFuzzer
M:Function.FunctionTest:() (O)java.lang.Object:()
M:Fuzz.TestFuzzer:() (O)java.lang.Object:()
M:Fuzz.TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (I)com.code_intelligence.jazzer.api.FuzzedDataProvider:consumeInt(int,int)
M:Fuzz.TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (O)Function.FunctionTest:()
M:Fuzz.TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (M)Function.FunctionTest:function1()
M:Fuzz.TestFuzzer:fuzzerTestOneInput(com.code_intelligence.jazzer.api.FuzzedDataProvider) (S)Function.FunctionTest:function2()

@arthurscchan arthurscchan marked this pull request as ready for review October 6, 2022 17:23
Copy link
Contributor

@DavidKorczynski DavidKorczynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the callgraphs for some time and it kind of makes sense but am not completely sure about the data structure -- looking forward to seeing the further logic that parses it etc.

@DavidKorczynski DavidKorczynski merged commit b84513c into ossf:main Oct 6, 2022
@arthurscchan arthurscchan deleted the java-callgraph branch October 29, 2022 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants