mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
update A.java test
This commit is contained in:
@@ -88,10 +88,10 @@ public class A {
|
||||
public void deserializeSnakeYaml4(Socket sock) {
|
||||
Yaml yaml = new Yaml(new Constructor(A.class));
|
||||
InputStream input = sock.getInputStream();
|
||||
Object o = yaml.load(input); //OK
|
||||
Object o2 = yaml.loadAll(input); //OK
|
||||
Object o3 = yaml.parse(new InputStreamReader(input)); //OK
|
||||
A o4 = yaml.loadAs(input, A.class); //OK
|
||||
A o5 = yaml.loadAs(new InputStreamReader(input), A.class); //OK
|
||||
Object o = yaml.load(input); //unsafe
|
||||
Object o2 = yaml.loadAll(input); //unsafe
|
||||
Object o3 = yaml.parse(new InputStreamReader(input)); //unsafe
|
||||
A o4 = yaml.loadAs(input, A.class); //unsafe
|
||||
A o5 = yaml.loadAs(new InputStreamReader(input), A.class); //unsafe
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user