OSS-Fuzz: Code comment tweaks for compr. targets
(oversight from 171b875b272f47f1ae42a5009c64f424db22a95b)
diff --git a/fuzz/compress.cc b/fuzz/compress.cc
index 6bf657e..539932f 100644
--- a/fuzz/compress.cc
+++ b/fuzz/compress.cc
@@ -88,9 +88,9 @@
if (ti != 2)
flags |= TJFLAG_NOREALLOC;
- /* tjLoadImage() ignores 0-pixel images and images larger than 1 Megapixel
- when FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION is defined (yes, that's
- a dirty hack), so we don't need to check the width and height here. */
+ /* tjLoadImage() refuses to load images larger than 1 Megapixel when
+ FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION is defined (yes, that's a dirty
+ hack), so we don't need to check the width and height here. */
if ((srcBuf = tjLoadImage(filename, &width, 1, &height, &pf,
flags)) == NULL)
continue;
diff --git a/fuzz/compress_yuv.cc b/fuzz/compress_yuv.cc
index 6269d42..021d661 100644
--- a/fuzz/compress_yuv.cc
+++ b/fuzz/compress_yuv.cc
@@ -97,9 +97,9 @@
else
restartEnv[11] = '0';
- /* tjLoadImage() ignores 0-pixel images and images larger than 1 Megapixel
- when FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION is defined (yes, that's
- a dirty hack), so we don't need to check the width and height here. */
+ /* tjLoadImage() refuses to load images larger than 1 Megapixel when
+ FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION is defined (yes, that's a dirty
+ hack), so we don't need to check the width and height here. */
if ((srcBuf = tjLoadImage(filename, &width, 1, &height, &pf,
flags)) == NULL)
continue;
diff --git a/turbojpeg.c b/turbojpeg.c
index 20b18d1..3500c78 100644
--- a/turbojpeg.c
+++ b/turbojpeg.c
@@ -2093,7 +2093,7 @@
src->input_file = file;
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
- /* Ignore images larger than 1 Megapixel when fuzzing. */
+ /* Refuse to load images larger than 1 Megapixel when fuzzing. */
if (flags & TJFLAG_FUZZING)
src->max_pixels = 1048576;
#endif