Lines Matching refs:slength
1242 png_size_t slength, prefix_length, data_length; in png_handle_iCCP() local
1281 slength = length; in png_handle_iCCP()
1282 png_crc_read(png_ptr, (png_bytep)png_ptr->chunkdata, slength); in png_handle_iCCP()
1291 png_ptr->chunkdata[slength] = 0x00; in png_handle_iCCP()
1301 if (profile >= png_ptr->chunkdata + slength - 1) in png_handle_iCCP()
1321 slength, prefix_length, &data_length); in png_handle_iCCP()
1380 png_size_t slength; in png_handle_sPLT() local
1431 slength = length; in png_handle_sPLT()
1432 png_crc_read(png_ptr, (png_bytep)png_ptr->chunkdata, slength); in png_handle_sPLT()
1441 png_ptr->chunkdata[slength] = 0x00; in png_handle_sPLT()
1450 if (entry_start > (png_bytep)png_ptr->chunkdata + slength - 2) in png_handle_sPLT()
1925 png_size_t slength; in png_handle_pCAL() local
1958 slength = length; in png_handle_pCAL()
1959 png_crc_read(png_ptr, (png_bytep)png_ptr->chunkdata, slength); in png_handle_pCAL()
1968 png_ptr->chunkdata[slength] = 0x00; /* Null terminate the last string */ in png_handle_pCAL()
1974 endptr = png_ptr->chunkdata + slength; in png_handle_pCAL()
2065 png_size_t slength, i; in png_handle_sCAL() local
2107 slength = length; in png_handle_sCAL()
2108 png_crc_read(png_ptr, (png_bytep)png_ptr->chunkdata, slength); in png_handle_sCAL()
2109 png_ptr->chunkdata[slength] = 0x00; /* Null terminate the last string */ in png_handle_sCAL()
2133 if (!png_check_fp_number(png_ptr->chunkdata, slength, &state, &i) || in png_handle_sCAL()
2134 i >= slength || png_ptr->chunkdata[i++] != 0) in png_handle_sCAL()
2145 if (!png_check_fp_number(png_ptr->chunkdata, slength, &state, &i) || in png_handle_sCAL()
2146 i != slength) in png_handle_sCAL()
2219 png_size_t slength; in png_handle_tEXt() local
2267 slength = length; in png_handle_tEXt()
2268 png_crc_read(png_ptr, (png_bytep)png_ptr->chunkdata, slength); in png_handle_tEXt()
2279 key[slength] = 0x00; in png_handle_tEXt()
2284 if (text != key + slength) in png_handle_tEXt()
2326 png_size_t slength, prefix_len, data_len; in png_handle_zTXt() local
2375 slength = length; in png_handle_zTXt()
2376 png_crc_read(png_ptr, (png_bytep)png_ptr->chunkdata, slength); in png_handle_zTXt()
2385 png_ptr->chunkdata[slength] = 0x00; in png_handle_zTXt()
2391 if (text >= png_ptr->chunkdata + slength - 2) in png_handle_zTXt()
2457 png_size_t slength, prefix_len, data_len; in png_handle_iTXt() local
2506 slength = length; in png_handle_iTXt()
2507 png_crc_read(png_ptr, (png_bytep)png_ptr->chunkdata, slength); in png_handle_iTXt()
2516 png_ptr->chunkdata[slength] = 0x00; in png_handle_iTXt()
2528 if (lang >= png_ptr->chunkdata + slength - 3) in png_handle_iTXt()
2555 if (lang_key >= png_ptr->chunkdata + slength) in png_handle_iTXt()
2568 if (text >= png_ptr->chunkdata + slength) in png_handle_iTXt()