mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Fix a model
This commit is contained in:
@@ -33,7 +33,7 @@ extensions:
|
||||
- ["io.netty.handler.codec.http", "HttpRequest", True, "getUri", "", "", "Argument[-1]", "ReturnValue", "taint", "manual"]
|
||||
- ["io.netty.handler.codec.http", "HttpRequest", True, "uri", "", "", "Argument[-1]", "ReturnValue", "taint", "manual"]
|
||||
- ["io.netty.handler.codec.http", "QueryStringDecoder", True, "QueryStringDecoder", "", "", "Argument[0]", "Argument[-1]", "taint", "manual"]
|
||||
- ["io.netty.handler.codec.http", "QueryStringDecoder", True, "decodeComponent", "", "", "Argument[-1]", "ReturnValue", "taint", "manual"]
|
||||
- ["io.netty.handler.codec.http", "QueryStringDecoder", True, "decodeComponent", "", "", "Argument[0]", "ReturnValue", "taint", "manual"]
|
||||
- ["io.netty.handler.codec.http", "QueryStringDecoder", True, "parameters", "", "", "Argument[-1]", "ReturnValue", "taint", "manual"]
|
||||
- ["io.netty.handler.codec.http", "QueryStringDecoder", True, "path", "", "", "Argument[-1]", "ReturnValue", "taint", "manual"]
|
||||
- ["io.netty.handler.codec.http", "QueryStringDecoder", True, "rawPath", "", "", "Argument[-1]", "ReturnValue", "taint", "manual"]
|
||||
|
||||
@@ -4486,17 +4486,17 @@ public class Test {
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "io.netty.handler.codec.http;QueryStringDecoder;true;decodeComponent;;;Argument[-1];ReturnValue;taint;manual"
|
||||
// "io.netty.handler.codec.http;QueryStringDecoder;true;decodeComponent;;;Argument[0];ReturnValue;taint;manual"
|
||||
String out = null;
|
||||
QueryStringDecoder in = (QueryStringDecoder)source();
|
||||
out = QueryStringDecoder.decodeComponent(null);
|
||||
String in = (String)source();
|
||||
out = QueryStringDecoder.decodeComponent(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "io.netty.handler.codec.http;QueryStringDecoder;true;decodeComponent;;;Argument[-1];ReturnValue;taint;manual"
|
||||
// "io.netty.handler.codec.http;QueryStringDecoder;true;decodeComponent;;;Argument[0];ReturnValue;taint;manual"
|
||||
String out = null;
|
||||
QueryStringDecoder in = (QueryStringDecoder)source();
|
||||
out = QueryStringDecoder.decodeComponent(null, null);
|
||||
String in = (String)source();
|
||||
out = QueryStringDecoder.decodeComponent(in, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user