Skip to content

Commit 862de64

Browse files
committed
fix: correct method descriptor in path traversal sanitizer
1 parent 0c95927 commit 862de64

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sanitizers/src/main/java/com/code_intelligence/jazzer/sanitizers/FilePathTraversal.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ public static Optional<Path> toRelativePath(Path path, Path currentDir) {
136136
type = HookType.BEFORE,
137137
targetClassName = "java.nio.file.Files",
138138
targetMethod = "readString")
139-
@MethodHook(
140-
type = HookType.BEFORE,
141-
targetClassName = "java.nio.file.Files",
142-
targetMethod = "newBufferedReader")
143139
@MethodHook(
144140
type = HookType.BEFORE,
145141
targetClassName = "java.nio.file.Files",
@@ -170,8 +166,8 @@ public static Optional<Path> toRelativePath(Path path, Path currentDir) {
170166
targetMethod = "newOutputStream")
171167
@MethodHook(
172168
type = HookType.BEFORE,
173-
targetClassName = "java.nio.file.probeContentType",
174-
targetMethod = "open")
169+
targetClassName = "java.nio.file.Files",
170+
targetMethod = "probeContentType")
175171
@MethodHook(
176172
type = HookType.BEFORE,
177173
targetClassName = "java.nio.channels.FileChannel",

0 commit comments

Comments
 (0)