@@ -57,25 +57,25 @@ fn test_env_dirs() {
57
57
}
58
58
59
59
async fn test_reqwest ( ) -> Result < ( ) , reqwest:: Error > {
60
- let remote_string1 = reqwest:: blocking:: get ( "http:// example.com/ " ) ?. text ( ) ?; // $ Alert[rust/summary/taint-sources]
61
- sink ( remote_string1) ; // $ MISSING: hasTaintFlow
60
+ let remote_string1 = reqwest:: blocking:: get ( "example.com" ) ?. text ( ) ?; // $ Alert[rust/summary/taint-sources]
61
+ sink ( remote_string1) ; // $ hasTaintFlow="example.com"
62
62
63
- let remote_string2 = reqwest:: blocking:: get ( "http:// example.com/ " ) . unwrap ( ) . text ( ) . unwrap ( ) ; // $ Alert[rust/summary/taint-sources]
64
- sink ( remote_string2) ; // $ MISSING: hasTaintFlow
63
+ let remote_string2 = reqwest:: blocking:: get ( "example.com" ) . unwrap ( ) . text ( ) . unwrap ( ) ; // $ Alert[rust/summary/taint-sources]
64
+ sink ( remote_string2) ; // $ hasTaintFlow="example.com"
65
65
66
- let remote_string3 = reqwest:: blocking:: get ( "http:// example.com/ " ) . unwrap ( ) . text_with_charset ( "utf-8" ) . unwrap ( ) ; // $ Alert[rust/summary/taint-sources]
67
- sink ( remote_string3) ; // $ MISSING: hasTaintFlow
66
+ let remote_string3 = reqwest:: blocking:: get ( "example.com" ) . unwrap ( ) . text_with_charset ( "utf-8" ) . unwrap ( ) ; // $ Alert[rust/summary/taint-sources]
67
+ sink ( remote_string3) ; // $ hasTaintFlow="example.com"
68
68
69
- let remote_string4 = reqwest:: blocking:: get ( "http:// example.com/ " ) . unwrap ( ) . bytes ( ) . unwrap ( ) ; // $ Alert[rust/summary/taint-sources]
70
- sink ( remote_string4) ; // $ MISSING: hasTaintFlow
69
+ let remote_string4 = reqwest:: blocking:: get ( "example.com" ) . unwrap ( ) . bytes ( ) . unwrap ( ) ; // $ Alert[rust/summary/taint-sources]
70
+ sink ( remote_string4) ; // $ hasTaintFlow="example.com"
71
71
72
- let remote_string5 = reqwest:: get ( "http:// example.com/ " ) . await ?. text ( ) . await ?; // $ Alert[rust/summary/taint-sources]
72
+ let remote_string5 = reqwest:: get ( "example.com" ) . await ?. text ( ) . await ?; // $ Alert[rust/summary/taint-sources]
73
73
sink ( remote_string5) ; // $ MISSING: hasTaintFlow
74
74
75
- let remote_string6 = reqwest:: get ( "http:// example.com/ " ) . await ?. bytes ( ) . await ?; // $ Alert[rust/summary/taint-sources]
75
+ let remote_string6 = reqwest:: get ( "example.com" ) . await ?. bytes ( ) . await ?; // $ Alert[rust/summary/taint-sources]
76
76
sink ( remote_string6) ; // $ MISSING: hasTaintFlow
77
77
78
- let mut request1 = reqwest:: get ( "http:// example.com/ " ) . await ?; // $ Alert[rust/summary/taint-sources]
78
+ let mut request1 = reqwest:: get ( "example.com" ) . await ?; // $ Alert[rust/summary/taint-sources]
79
79
while let Some ( chunk) = request1. chunk ( ) . await ? {
80
80
sink ( chunk) ; // $ MISSING: hasTaintFlow
81
81
}
0 commit comments