Add overflow checks for opj_aligned_malloc