1
0
mirror of https://github.com/janet-lang/janet synced 2025-08-30 01:18:03 +00:00

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

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)