diff
24   if (cinfo->num_components > MAX_COMPS_IN_SCAN) {
25       return ERROR_EXCESSIVE_COMPONENTS; // Assuming ERROR_EXCESSIVE_COMPONENTS is defined appropriately
26   }
27   for (i = 0; i < cinfo->num_components; i++)
