Skip to content

Commit 6471092

Browse files
authored
Merge pull request github#6394 from github/p0/csharp-virtual-dispatch-limit
C#: Guard against virtual dispatch branching too much.
2 parents c29353d + 2be9f3e commit 6471092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/ql/src/semmle/code/csharp/dispatch/Dispatch.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ private module Internal {
508508
override RuntimeCallable getADynamicTarget() {
509509
result = getAViableInherited()
510510
or
511-
result = getAViableOverrider()
511+
result = getAViableOverrider() and strictcount(getAViableOverrider()) < 1000
512512
or
513513
// Simple case: target method cannot be overridden
514514
result = getAStaticTarget() and

0 commit comments

Comments
 (0)