mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
Make unmarshal fuzzer exercise more code paths.
This commit is contained in:
parent
553e38ffd6
commit
45156c0c47
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user