aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2020-04-05 20:36:30 -0500
committerGitHub <noreply@github.com>2020-04-05 20:36:30 -0500
commitcc703888464496c9f1db82765bb26b1c901ba83e (patch)
tree32ae2da62a95f6e196cfa8cdad57f35d9b90ef65 /tools
parentAddress #336 case 4 (diff)
parentMake unmarshal fuzzer exercise more code paths. (diff)
Merge pull request #338 from andrewchambers/unmarshalfuzz2
Make unmarshal fuzzer exercise more code paths.
Diffstat (limited to 'tools')
-rw-r--r--tools/afl/unmarshal_runner.janet8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/afl/unmarshal_runner.janet b/tools/afl/unmarshal_runner.janet
index 801e8e00..31f43a53 100644
--- a/tools/afl/unmarshal_runner.janet
+++ b/tools/afl/unmarshal_runner.janet
@@ -1,2 +1,6 @@
- (pp (unmarshal (slurp ((dyn :args) 1)) load-image-dict))
-
+# Unmarshal garbage.
+(def v (unmarshal (slurp ((dyn :args) 1)) load-image-dict))
+# Trigger leaks or use after free.
+(gccollect)
+# Attempt to use generated value.
+(marshal v make-image-dict)