File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
java/ql/src/semmle/code/java/dispatch Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 88
99## Changes to QL libraries
1010
11+ * The virtual dispatch library has been updated to give more precise dispatch
12+ targets for ` Object.toString() ` calls. This affects all security queries and
13+ removes false positives that arose from paths through impossible ` toString() `
14+ calls.
15+
Original file line number Diff line number Diff line change 1+ /**
2+ * Provides a dispatch relation `viableImpl_out` that reduces the set of
3+ * dispatch targets for `Object.toString()` calls relative to the input
4+ * dispatch relation `viableImpl_inp`.
5+ *
6+ * The set of dispatch targets for `Object.toString()` calls are reduced based
7+ * on possible data flow from objects of more specific types to the qualifier.
8+ */
19import java
210private import VirtualDispatch
311private import semmle.code.java.controlflow.Guards
@@ -251,7 +259,7 @@ private Method viableImplObjectToString(MethodAccess ma) {
251259 * Gets a viable dispatch target for `ma`. This is the output dispatch relation.
252260 *
253261 * The set of dispatch targets for `Object.toString()` calls are reduced based
254- * on possibly data flow from objects of more specific types to the qualifier.
262+ * on possible data flow from objects of more specific types to the qualifier.
255263 */
256264Method viableImpl_out ( MethodAccess ma ) {
257265 result = viableImpl_inp ( ma ) and
You can’t perform that action at this time.
0 commit comments