Lines Matching refs:l_newCount
3542 OPJ_UINT32 l_newCount = l_Z_ppm + 1U; /* can't overflow, l_Z_ppm is UINT8 */ in opj_j2k_read_ppm() local
3545 l_cp->ppm_markers = (opj_ppx *) opj_calloc(l_newCount, sizeof(opj_ppx)); in opj_j2k_read_ppm()
3550 l_cp->ppm_markers_count = l_newCount; in opj_j2k_read_ppm()
3552 OPJ_UINT32 l_newCount = l_Z_ppm + 1U; /* can't overflow, l_Z_ppm is UINT8 */ in opj_j2k_read_ppm() local
3554 new_ppm_markers = (opj_ppx *) opj_realloc(l_cp->ppm_markers, l_newCount * sizeof(opj_ppx)); in opj_j2k_read_ppm()
3561 …memset(l_cp->ppm_markers + l_cp->ppm_markers_count, 0, (l_newCount - l_cp->ppm_markers_count) * si… in opj_j2k_read_ppm()
3562 l_cp->ppm_markers_count = l_newCount; in opj_j2k_read_ppm()
3764 OPJ_UINT32 l_newCount = l_Z_ppt + 1U; /* can't overflow, l_Z_ppt is UINT8 */ in opj_j2k_read_ppt() local
3767 l_tcp->ppt_markers = (opj_ppx *) opj_calloc(l_newCount, sizeof(opj_ppx)); in opj_j2k_read_ppt()
3772 l_tcp->ppt_markers_count = l_newCount; in opj_j2k_read_ppt()
3774 OPJ_UINT32 l_newCount = l_Z_ppt + 1U; /* can't overflow, l_Z_ppt is UINT8 */ in opj_j2k_read_ppt() local
3776 new_ppt_markers = (opj_ppx *) opj_realloc(l_tcp->ppt_markers, l_newCount * sizeof(opj_ppx)); in opj_j2k_read_ppt()
3783 …memset(l_tcp->ppt_markers + l_tcp->ppt_markers_count, 0, (l_newCount - l_tcp->ppt_markers_count) *… in opj_j2k_read_ppt()
3784 l_tcp->ppt_markers_count = l_newCount; in opj_j2k_read_ppt()