Check array bounds for opj_dwt_decode_1() and friends.
Check array bounds for opj_dwt_decode_1() and friends.

Based on an earlier patch by jun_fang@foxitsoftware.com.

BUG=450844
R=jun_fang@foxitsoftware.com

Review URL: https://codereview.chromium.org/1320443003 .

DrAlexx/pdfium,was4444/pdfium,andoma/pdfium,andoma/pdfium,DrAlexx/pdfium,was4444/pdfium,azunite/libpdfium,azunite/libpdfium,andoma/pdfium,azunite/libpdfium,DrAlexx/pdfium,azunite/libpdfium,was4444/pdfium,was4444/pdfium,DrAlexx/pdfium,andoma/pdfium