Searched refs:old_num_chunks (Results 1 – 2 of 2) sorted by relevance
/external/pdfium/third_party/libpng16/ |
D | pngset.c | 1327 unsigned int num_chunks, old_num_chunks; in png_set_keep_unknown_chunks() local 1392 old_num_chunks = png_ptr->num_chunk_list; in png_set_keep_unknown_chunks() 1394 old_num_chunks = 0; in png_set_keep_unknown_chunks() 1398 if (num_chunks + old_num_chunks > UINT_MAX/5) in png_set_keep_unknown_chunks() 1412 5 * (num_chunks + old_num_chunks))); in png_set_keep_unknown_chunks() 1414 if (old_num_chunks > 0) in png_set_keep_unknown_chunks() 1415 memcpy(new_list, png_ptr->chunk_list, 5*old_num_chunks); in png_set_keep_unknown_chunks() 1418 else if (old_num_chunks > 0) in png_set_keep_unknown_chunks() 1437 old_num_chunks = add_one_chunk(new_list, old_num_chunks, in png_set_keep_unknown_chunks() 1443 for (i=0, inlist=outlist=new_list; i<old_num_chunks; ++i, inlist += 5) in png_set_keep_unknown_chunks()
|
/external/libpng/ |
D | pngset.c | 1376 unsigned int num_chunks, old_num_chunks; in png_set_keep_unknown_chunks() local 1442 old_num_chunks = png_ptr->num_chunk_list; in png_set_keep_unknown_chunks() 1444 old_num_chunks = 0; in png_set_keep_unknown_chunks() 1448 if (num_chunks + old_num_chunks > UINT_MAX/5) in png_set_keep_unknown_chunks() 1462 5 * (num_chunks + old_num_chunks))); in png_set_keep_unknown_chunks() 1464 if (old_num_chunks > 0) in png_set_keep_unknown_chunks() 1465 memcpy(new_list, png_ptr->chunk_list, 5*old_num_chunks); in png_set_keep_unknown_chunks() 1468 else if (old_num_chunks > 0) in png_set_keep_unknown_chunks() 1487 old_num_chunks = add_one_chunk(new_list, old_num_chunks, in png_set_keep_unknown_chunks() 1493 for (i=0, inlist=outlist=new_list; i<old_num_chunks; ++i, inlist += 5) in png_set_keep_unknown_chunks()
|