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 495644 25183982ae1bae54b2ffeacbcf178bea3ec9323d
parent 495643 c1354102f8a8677614fbe9db2f654130ffe67616
child 495645 34e369fb83b50018f760b6cc619f3c15808e5d1c
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersagaynor
bugs1494222
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;
   }