Lines Matching refs:keyword_length
1372 uInt read_length, keyword_length; in png_handle_iCCP() local
1385 keyword_length = 0; in png_handle_iCCP()
1386 while (keyword_length < 80 && keyword_length < read_length && in png_handle_iCCP()
1387 keyword[keyword_length] != 0) in png_handle_iCCP()
1388 ++keyword_length; in png_handle_iCCP()
1391 if (keyword_length >= 1 && keyword_length <= 79) in png_handle_iCCP()
1396 if (keyword_length+1 < read_length && in png_handle_iCCP()
1397 keyword[keyword_length+1] == PNG_COMPRESSION_TYPE_BASE) in png_handle_iCCP()
1399 read_length -= keyword_length+2; in png_handle_iCCP()
1407 png_ptr->zstream.next_in = (Bytef*)keyword + (keyword_length+2); in png_handle_iCCP()
1505 keyword_length+1)); in png_handle_iCCP()
1509 keyword_length+1); in png_handle_iCCP()
2476 png_uint_32 keyword_length; in png_handle_zTXt() local
2519 for (keyword_length = 0; in png_handle_zTXt()
2520 keyword_length < length && buffer[keyword_length] != 0; in png_handle_zTXt()
2521 ++keyword_length) in png_handle_zTXt()
2524 if (keyword_length > 79 || keyword_length < 1) in png_handle_zTXt()
2531 else if (keyword_length + 3 > length) in png_handle_zTXt()
2534 else if (buffer[keyword_length+1] != PNG_COMPRESSION_TYPE_BASE) in png_handle_zTXt()
2545 if (png_decompress_chunk(png_ptr, length, keyword_length+2, in png_handle_zTXt()
2555 buffer[uncompressed_length+(keyword_length+2)] = 0; in png_handle_zTXt()
2559 text.text = (png_charp)(buffer + keyword_length+2); in png_handle_zTXt()