mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
use $ SPURIOUS: instead of "this test gives a FP"
This commit is contained in:
@@ -33,7 +33,7 @@ public class Zip4jHandler {
|
||||
File extractedFile = new File(localFileHeader.getFileName());
|
||||
try (OutputStream outputStream = new FileOutputStream(extractedFile)) {
|
||||
int totallRead = 0;
|
||||
while ((readLen = zipInputStream.read(readBuffer)) != -1) { // $ hasTaintFlow="zipInputStream" "this test gives a FP"
|
||||
while ((readLen = zipInputStream.read(readBuffer)) != -1) { // $ SPURIOUS: hasTaintFlow="zipInputStream"
|
||||
totallRead += readLen;
|
||||
if (totallRead > 1024 * 1024 * 4) {
|
||||
System.out.println("potential Bomb");
|
||||
|
||||
Reference in New Issue
Block a user