@@ -483,7 +483,7 @@ public void fileConstructorSanitizer() throws Exception {
483
483
if (!source .contains (".." )) {
484
484
File f2 = new File (f1 , source );
485
485
sink (f2 ); // Safe
486
- sink (source ); // $ hasTaintFlow
486
+ sink (source ); // $ MISSING: hasTaintFlow
487
487
} else {
488
488
File f3 = new File (f1 , source );
489
489
sink (f3 ); // $ hasTaintFlow
@@ -502,9 +502,9 @@ public void fileConstructorSanitizer() throws Exception {
502
502
503
503
if (!source .contains (".." )) {
504
504
// `f2` is unsafe if `f1` is tainted
505
- File f2 = new File (f1Tainted , source );
505
+ File f2 = new File (( File ) source () , source );
506
506
sink (f2 ); // $ hasTaintFlow
507
- sink (source ); // $ hasTaintFlow
507
+ sink (source ); // $ MISSING: hasTaintFlow
508
508
} else {
509
509
File f3 = new File (f1Tainted , source );
510
510
sink (f3 ); // $ hasTaintFlow
@@ -531,7 +531,7 @@ public void fileConstructorSanitizer() throws Exception {
531
531
if (source .indexOf (".." ) == -1 ) {
532
532
File f2 = new File (f1 , source );
533
533
sink (f2 ); // Safe
534
- sink (source ); // $ hasTaintFlow
534
+ sink (source ); // $ MISSING: hasTaintFlow
535
535
} else {
536
536
File f3 = new File (f1 , source );
537
537
sink (f3 ); // $ hasTaintFlow
@@ -548,7 +548,7 @@ public void fileConstructorSanitizer() throws Exception {
548
548
} else {
549
549
File f3 = new File (f1 , source );
550
550
sink (f3 ); // Safe
551
- sink (source ); // $ hasTaintFlow
551
+ sink (source ); // $ MISSING: hasTaintFlow
552
552
}
553
553
}
554
554
{
@@ -557,7 +557,7 @@ public void fileConstructorSanitizer() throws Exception {
557
557
if (source .lastIndexOf (".." ) == -1 ) {
558
558
File f2 = new File (f1 , source );
559
559
sink (f2 ); // Safe
560
- sink (source ); // $ hasTaintFlow
560
+ sink (source ); // $ MISSING: hasTaintFlow
561
561
} else {
562
562
File f3 = new File (f1 , source );
563
563
sink (f3 ); // $ hasTaintFlow
@@ -571,7 +571,7 @@ public void fileConstructorSanitizer() throws Exception {
571
571
fileConstructorValidation (source );
572
572
File f2 = new File (f1 , source );
573
573
sink (f2 ); // Safe
574
- sink (source ); // $ hasTaintFlow
574
+ sink (source ); // $ MISSING: hasTaintFlow
575
575
}
576
576
{
577
577
String source = (String ) source ();
@@ -582,7 +582,7 @@ public void fileConstructorSanitizer() throws Exception {
582
582
} else {
583
583
File f2 = new File (f1 , source );
584
584
sink (f2 ); // Safe
585
- sink (source ); // $ hasTaintFlow
585
+ sink (source ); // $ MISSING: hasTaintFlow
586
586
}
587
587
}
588
588
// PathNormalizeSanitizer
@@ -593,7 +593,7 @@ public void fileConstructorSanitizer() throws Exception {
593
593
File f2 = new File (f1 , normalized );
594
594
sink (f2 ); // Safe
595
595
sink (source ); // $ hasTaintFlow
596
- sink (normalized ); // $ hasTaintFlow
596
+ sink (normalized ); // $ MISSING: hasTaintFlow
597
597
}
598
598
{
599
599
File source = (File ) source ();
@@ -602,7 +602,7 @@ public void fileConstructorSanitizer() throws Exception {
602
602
File f2 = new File (f1 , normalized );
603
603
sink (f2 ); // Safe
604
604
sink (source ); // $ hasTaintFlow
605
- sink (normalized ); // $ hasTaintFlow
605
+ sink (normalized ); // $ MISSING: hasTaintFlow
606
606
}
607
607
{
608
608
String source = (String ) source ();
@@ -611,7 +611,7 @@ public void fileConstructorSanitizer() throws Exception {
611
611
File f2 = new File (f1 , normalized );
612
612
sink (f2 ); // Safe
613
613
sink (source ); // $ hasTaintFlow
614
- sink (normalized ); // $ hasTaintFlow
614
+ sink (normalized ); // $ MISSING: hasTaintFlow
615
615
}
616
616
}
617
617
}
0 commit comments