Bug 1494222: fix qcms_fuzzer coverage by enabling all path combinations. r=agaynor
authorThomas P. <pdknsk+mozilla@gmail.com>
Thu, 27 Sep 2018 21:59:12 +0000
changeset 488235 25183982ae1bae54b2ffeacbcf178bea3ec9323d
parent 488234 c1354102f8a8677614fbe9db2f654130ffe67616
child 488236 34e369fb83b50018f760b6cc619f3c15808e5d1c
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewersagaynor
bugs1494222
milestone64.0a1
Bug 1494222: fix qcms_fuzzer coverage by enabling all path combinations. r=agaynor
gfx/qcms/fuzztest/qcms_fuzzer.cpp
--- a/gfx/qcms/fuzztest/qcms_fuzzer.cpp
+++ b/gfx/qcms/fuzztest/qcms_fuzzer.cpp
@@ -34,17 +34,17 @@ transform(qcms_profile* src_profile, qcm
   if (dst_color_space != icSigRgbData) {
     return;
   }
   qcms_data_type dst_type = size & 2 ? QCMS_DATA_RGBA_8 : QCMS_DATA_RGB_8;
 
   qcms_intent intent = qcms_profile_get_rendering_intent(src_profile);
   // Firefox calls this on the display profile to increase performance.
   // Skip with low probability to increase coverage.
-  if (size % 0x10) {
+  if (size % 15) {
     qcms_profile_precache_output_transform(dst_profile);
   }
 
   qcms_transform* transform =
     qcms_transform_create(src_profile, src_type, dst_profile, dst_type, intent);
   if (!transform) {
     return;
   }