Commit 90aa92b
TLS-Attacker Developer
Fix resource leaks in ZipFileProvider
- Use try-with-resources to ensure ReadableByteChannel and FileOutputStream are properly closed
- Use nested try-with-resources for FileOutputStream in unzipping section
- Prevents potential resource leaks that could lead to file handle exhaustion1 parent 47872ac commit 90aa92b
File tree
1 file changed
+9
-11
lines changed- src/main/java/de/rub/nds/crawler/targetlist
1 file changed
+9
-11
lines changedLines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
50 | 49 | | |
51 | | - | |
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
| |||
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
67 | 66 | | |
68 | | - | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
0 commit comments