Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton committed Feb 23, 2024
1 parent d57160d commit 12213a0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import go
import TestUtilities.InlineFlowTest
import DefaultFlowTest
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package main

func source() string {
return "untrusted data"
}

func sink(any) {
}

func main() {
var someMap map[string]string = map[string]string{}
someMap["someKey"] = source()

for _, val := range someMap {
sink(val) // $ hasValueFlow="val"
}
}

0 comments on commit 12213a0

Please sign in to comment.