2021-06-01 01:41:03 +00:00
|
|
|
import pixie, pixie/fileformats/svg, random
|
2021-05-29 23:26:31 +00:00
|
|
|
|
|
|
|
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))
|
2021-05-29 23:26:31 +00:00
|
|
|
|
|
|
|
# image.writeFile("tests/fuzz_leaks3.png")
|
|
|
|
# break
|