Searched refs:safe_length (Results 1 – 2 of 2) sorted by relevance
141 uInt safe_length = (uInt)length; in png_calculate_crc() local142 if (safe_length == 0) in png_calculate_crc()143 safe_length = (uInt)-1; /* evil, but safe */ in png_calculate_crc()145 crc = crc32(crc, ptr, safe_length); in png_calculate_crc()151 ptr += safe_length; in png_calculate_crc()152 length -= safe_length; in png_calculate_crc()
147 uInt safe_length = (uInt)length; in png_calculate_crc() local149 if (safe_length == 0) in png_calculate_crc()150 safe_length = (uInt)-1; /* evil, but safe */ in png_calculate_crc()153 crc = crc32(crc, ptr, safe_length); in png_calculate_crc()159 ptr += safe_length; in png_calculate_crc()160 length -= safe_length; in png_calculate_crc()