mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Model java.lang.Object.clone() better for access paths.
Model value flow for Element, MapKey and MapValue. This assumes that clone() is a shallow copy.
This commit is contained in:
@@ -95,6 +95,9 @@ private class ContainerFlowSummaries extends SummaryModelCsv {
|
||||
override predicate row(string row) {
|
||||
row =
|
||||
[
|
||||
"java.lang;Object;true;clone;;;MapKey of Argument[-1];MapKey of ReturnValue;value",
|
||||
"java.lang;Object;true;clone;;;MapValue of Argument[-1];MapValue of ReturnValue;value",
|
||||
"java.lang;Object;true;clone;;;Element of Argument[-1];Element of ReturnValue;value",
|
||||
"java.util;Map$Entry;true;getKey;;;MapKey of Argument[-1];ReturnValue;value",
|
||||
"java.util;Map$Entry;true;getValue;;;MapValue of Argument[-1];ReturnValue;value",
|
||||
"java.util;Map$Entry;true;setValue;;;MapValue of Argument[-1];ReturnValue;value",
|
||||
|
||||
Reference in New Issue
Block a user