Skip to content

Commit 8eed1a9

Browse files
committed
stop recursive fromRhs related to getLaterBaseAccess
1 parent 84a7b3c commit 8eed1a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/ql/lib/semmle/javascript/GlobalAccessPaths.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ module AccessPath {
234234
or
235235
baseName = fromRhs(write.getBase(), root)
236236
or
237-
baseName = fromRhs(GetLaterAccess::getLaterBaseAccess(write), root)
237+
baseName = fromRhs(GetLaterAccess::getLaterBaseAccess(write), root) and
238+
not baseName.matches("%.%")
238239
)
239240
or
240241
exists(GlobalVariable var |

0 commit comments

Comments
 (0)