[trunk] Run test case for issue 228. Output has been validated.

Fixes issue 228
[trunk] Clarify raw input in openjpeg. LSB vs MSB are now documented.

Fixes issue 62
[trunk] Import commit f4139d702559649e577a5df9cfd64b0ca6107a7a from ghostpdl

Several functions accept a buffer size but never actually check whether
the buffer overflows during reading/writing. This fixes all cases where
a size variable has explicitly been marked as unused (through a (void)
cast).

This was discovered while investigating an assertion caused by
7cc691f332f26802c64cdc47e17bff8b_signal_sigabrt_7ffff6d59425_2247_2509.pdf
among others.

Thanks to Mateusz Jurczyk and Gynvael Coldwind of the Google Security
Team for providing the example files.
[trunk] Import commit 8ec8321df613986e8642e2975f7182072eb4be62 from ghostpdl

make opj_stream_set_user_data accept a NULL stream
for consistency with opj_stream_set_* which does so.

Update issue 225
[trunk] Import commit fc884aee2b69c78500e65c3d05bf216791a9ea4a from ghostpdl

prevent heap overflow in opj_t2_read_packet_header

Also prevent a double-free of segment data under OOM conditions.

Problem found in a test file, 1802.pdf.SIGSEGV.36e.894 supplied
by Mateusz "j00ru" Jurczyk and Gynvael Coldwind of the Google
Security Team using Address Sanitizer. Many thanks!

Update issue 225
[trunk] import commit 83dad6a76536222a3a51146f942e733a2e90ec52 from ghostpdl

fix potential NULL-pointer dereference caused by testing the wrong variable
after opj_realloc (happens only in OOM situations)

Update issue 225
[trunk] Import commit 4cee6ceab21025079f439bb152fb9d8ae8c5c832 from ghostpdl

Bug 694906: fix potential heap overflow in opj_t2_read_packet_header

Update issue 225
[trunk] Import commit 87b08a096bb8ad61f9dbe4811e208d9c9d7fe63b from ghostpdl

don't define lrintf for MSVC 2013 (fix compilation breakage)

Update issue 225
[trunk] Revert r2415 for now since it introduce large regression
[trunk] Run decoder on issue 229 test cases

Update issue 229
[trunk] For now assume any provided stream should not get decompressed.

Update issue 225
[trunk] New decoded files are passing. Adding reference files.

Update issue 225
[trunk] Create a new static *_impl function to avoid a warning triggered by the deprecation mecanism

Fixes issue 257
[trunk] deprecationg warning issued by java compiler should be ignored
[trunk] Run decoder on input dataset from issue 254. Add fake md5sum to make sure the test is failing.

Update issue 254