Skip to content

Commit f6f594e

Browse files
committed
parse empty string as package name
1 parent fb74a2a commit f6f594e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go/ql/lib/semmle/go/dataflow/ExternalFlow.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ private string interpretPackage(string p) {
271271
then result = package(p.regexpCapture(r, 1), p.regexpCapture(r, 4))
272272
else result = package(p, "")
273273
)
274+
or
275+
p = "" and result = ""
274276
}
275277

276278
/** Gets the source/sink/summary element corresponding to the supplied parameters. */

0 commit comments

Comments
 (0)