Skip to content

Commit 4d440ab

Browse files
committed
Expected change in test output
These sources are now modeled using models-as-data, which (probably correctly) uses the post-update node as the source. But the deprecated QL models still exist, so we get two test results for each of these calls.
1 parent bc910cc commit 4d440ab

File tree

1 file changed

+4
-4
lines changed
  • go/ql/test/library-tests/semmle/go/frameworks/Fasthttp

1 file changed

+4
-4
lines changed

go/ql/test/library-tests/semmle/go/frameworks/Fasthttp/fasthttp.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ func fasthttpServer() {
169169
fmt.Println(body1, body2, body3, body4)
170170
requestCtx.Request.BodyStream() // $ RemoteFlowSource="call to BodyStream"
171171

172-
requestCtx.Request.ReadBody(&bufio.Reader{}, 100, 1000) // $ RemoteFlowSource="&..."
173-
requestCtx.Request.ReadLimitBody(&bufio.Reader{}, 100) // $ RemoteFlowSource="&..."
174-
requestCtx.Request.ContinueReadBodyStream(&bufio.Reader{}, 100, true) // $ RemoteFlowSource="&..."
175-
requestCtx.Request.ContinueReadBody(&bufio.Reader{}, 100) // $ RemoteFlowSource="&..."
172+
requestCtx.Request.ReadBody(&bufio.Reader{}, 100, 1000) // $ RemoteFlowSource="&..." RemoteFlowSource="&... [postupdate]"
173+
requestCtx.Request.ReadLimitBody(&bufio.Reader{}, 100) // $ RemoteFlowSource="&..." RemoteFlowSource="&... [postupdate]"
174+
requestCtx.Request.ContinueReadBodyStream(&bufio.Reader{}, 100, true) // $ RemoteFlowSource="&..." RemoteFlowSource="&... [postupdate]"
175+
requestCtx.Request.ContinueReadBody(&bufio.Reader{}, 100) // $ RemoteFlowSource="&..." RemoteFlowSource="&... [postupdate]"
176176

177177
// Response methods
178178
// Xss Sinks Related method

0 commit comments

Comments
 (0)