assert illegal null pointer arithmetic in tcd.c opj_tcd_dc_level_shift_decode
This commit is contained in:
parent
aecacb8c0b
commit
bbf52faf8c
|
@ -2324,6 +2324,7 @@ static OPJ_BOOL opj_tcd_dc_level_shift_decode(opj_tcd_t *p_tcd)
|
|||
l_max);
|
||||
++l_current_ptr;
|
||||
}
|
||||
assert(l_current_ptr!=NULL && "pointer arithmetic on null pointer is undefined behaviour");
|
||||
l_current_ptr += l_stride;
|
||||
}
|
||||
} else {
|
||||
|
@ -2342,6 +2343,7 @@ static OPJ_BOOL opj_tcd_dc_level_shift_decode(opj_tcd_t *p_tcd)
|
|||
}
|
||||
++l_current_ptr;
|
||||
}
|
||||
assert(l_current_ptr!=NULL && "pointer arithmetic on null pointer is undefined behaviour");
|
||||
l_current_ptr += l_stride;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue