Code: validate_T(void)
 /* Validate the above table - this just builds the above values */

 {
    unsigned int i;
 
   for (i=0; i<TTABLE_SIZE; ++i)
    {
       if (transform_info[i].when & TRANSFORM_R)
          read_transforms |= transform_info[i].transform;

 if (transform_info[i].when & TRANSFORM_W)
         write_transforms |= transform_info[i].transform;
 }

 /* Reversible transforms are those which are supported on both read and
    * write.
    */
   rw_transforms = read_transforms & write_transforms;
}

Commit Message: DO NOT MERGE Update libpng to 1.6.20

BUG:23265085
Change-Id: I85199805636d771f3597b691b63bc0bf46084833
(cherry picked from commit bbe98b40cda082024b669fa508931042eed18f82)

CWE ID: 
validate_T(void)
 /* Validate the above table - this just builds the above values */

 {
    unsigned int i;
 
   for (i=0; i<TTABLE_SIZE; ++i) if (transform_info[i].name != NULL)
    {
       if (transform_info[i].when & TRANSFORM_R)
          read_transforms |= transform_info[i].transform;

 if (transform_info[i].when & TRANSFORM_W)
         write_transforms |= transform_info[i].transform;
 }

 /* Reversible transforms are those which are supported on both read and
    * write.
    */
   rw_transforms = read_transforms & write_transforms;
}
