From 35efcf14954313cd405a2c66d133bb05f205f5f4 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Thu, 12 May 2022 18:47:53 -0500 Subject: [PATCH] jpeg version --- tests/fuzz_jpeg.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fuzz_jpeg.nim b/tests/fuzz_jpeg.nim index d101ca9..372e02f 100644 --- a/tests/fuzz_jpeg.nim +++ b/tests/fuzz_jpeg.nim @@ -1,4 +1,4 @@ -import jpegsuite, pixie/common, pixie/fileformats/jpg, random, strformat +import jpegsuite, pixie/common, pixie/fileformats/jpeg, random, strformat randomize() @@ -12,13 +12,13 @@ for i in 0 ..< 10_000: echo &"{i} {file} {pos} {value}" try: - let img = decodeJpg(data) + let img = decodeJpeg(data) doAssert img.height > 0 and img.width > 0 except PixieError: discard data = data[0 ..< pos] try: - let img = decodeJpg(data) + let img = decodeJpeg(data) doAssert img.height > 0 and img.width > 0 except PixieError: discard