[trunk] check possible overflow on size in opj_t2_read_packet_data

Update issue 390
Labels: Priority-Critical
Should be rechecked with ASan and pdfium
[trunk] fixed bad use of case statement (fixes issue 381)