pixie/tests/fuzz_leaks3.nim
Ryan Oldenburg 7ea0a37013 morepretty
2021-05-31 20:41:03 -05:00

15 lines
340 B
Nim

import pixie, pixie/fileformats/svg, random
when not defined(pixieLeakCheck):
quit("Requires -d:pixieLeakCheck")
randomize()
let data = readFile("tests/images/svg/Ghostscript_Tiger.svg")
for i in 0 ..< 100_000:
var image = decodeSvg(data, rand(300 .. 1800), rand(30 .. 1800))
# image.writeFile("tests/fuzz_leaks3.png")
# break