Merge pull request #338 from andrewchambers/unmarshalfuzz2

Make unmarshal fuzzer exercise more code paths.
This commit is contained in:
Calvin Rose 2020-04-05 20:36:30 -05:00 committed by GitHub
commit cc70388846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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)