Im testing IPP Jpeg decoder from the latest available samples with the latest IPP libs.
X86 version is crashing on some images when I change INPUT_BUF_SIZE to something different from the default value. I have a large number of test images and it looks like crashing jpeg depends on input buffer size.
X64 version is crashing always, even with the default buffer value. I could not tune buffer size to read all my jpegs.
The problem can be reproduced with djpeg application from samples with changing the following value: [cpp]#define INPUT_BUF_SIZE 100096 [/cpp]
Im getting access violation in jdhuff.c:1001 when memmove tries to use overflowed value as data size.
[cpp] /* Decode a single block's worth of coefficients */
if(state.ipp_need_update == 1)
// fails here
state.ipp_buffer + state.ipp_bytes_decoded,
state.ipp_bytes_in_buffer - state.ipp_bytes_decoded);
state.ipp_bytes_in_buffer = state.ipp_bytes_in_buffer -
Im attaching crashing jpeg for x86 version.
Windows 7 x64 IPP version: 188.8.131.520 w_ipp-samples_p_7.0.6.060