pixie/tests/fuzz_leaks3.nim

15 lines
340 B
Nim
Raw Normal View History

2021-06-01 01:41:03 +00:00
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:
2021-06-01 01:41:03 +00:00
var image = decodeSvg(data, rand(300 .. 1800), rand(30 .. 1800))
# image.writeFile("tests/fuzz_leaks3.png")
# break