File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/semmle/code/java/frameworks
test/library-tests/frameworks/javax-json Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ private class FlowSummaries extends SummaryModelCsv {
86
86
"JsonObjectBuilder;false;addAll;;;Argument[-1];ReturnValue;value" ,
87
87
"JsonObjectBuilder;false;addNull;;;Argument[-1];ReturnValue;value" ,
88
88
"JsonObjectBuilder;false;build;;;Argument[-1];ReturnValue;taint" ,
89
+ "JsonObjectBuilder;false;remove;;;Argument[-1];ReturnValue;value" ,
89
90
"JsonParserFactory;false;createParser;;;Argument[0];ReturnValue;taint" ,
90
91
"JsonPatch;false;apply;;;Argument[-1];ReturnValue;taint" ,
91
92
"JsonPatch;false;apply;;;Argument[0];ReturnValue;taint" ,
Original file line number Diff line number Diff line change @@ -1030,6 +1030,13 @@ public void test() {
1030
1030
out = in .build ();
1031
1031
sink (out ); // $hasTaintFlow
1032
1032
}
1033
+ {
1034
+ // "jakarta.json;JsonObjectBuilder;false;remove;;;Argument[-1];ReturnValue;value"
1035
+ jakarta .json .JsonObjectBuilder out = null ;
1036
+ jakarta .json .JsonObjectBuilder in = (jakarta .json .JsonObjectBuilder )source ();
1037
+ out = in .remove (null );
1038
+ sink (out ); // $hasValueFlow
1039
+ }
1033
1040
{
1034
1041
// "jakarta.json;JsonPatch;false;apply;;;Argument[-1];ReturnValue;taint"
1035
1042
jakarta .json .JsonStructure out = null ;
@@ -2210,6 +2217,13 @@ public void test() {
2210
2217
out = in .build ();
2211
2218
sink (out ); // $hasTaintFlow
2212
2219
}
2220
+ {
2221
+ // "javax.json;JsonObjectBuilder;false;remove;;;Argument[-1];ReturnValue;value"
2222
+ javax .json .JsonObjectBuilder out = null ;
2223
+ javax .json .JsonObjectBuilder in = (javax .json .JsonObjectBuilder )source ();
2224
+ out = in .remove (null );
2225
+ sink (out ); // $hasValueFlow
2226
+ }
2213
2227
{
2214
2228
// "javax.json;JsonPatch;false;apply;;;Argument[-1];ReturnValue;taint"
2215
2229
javax .json .JsonStructure out = null ;
You can’t perform that action at this time.
0 commit comments