Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef Ipp32f samplefbout[2][18][32];
- samplefbout fbout_data[NUM_CHANNELS];
- static void mp3enc_join_LR_l2(MP3Enc *state)
- {
- Ipp32s sb, j;
- Ipp32s sblimit_real = state->com.sblimit_real;
- for (sb = 0; sb < sblimit_real; sb++)
- for (j = 0; j < 36; j++)
- state->fbout_data[2][0][j][sb] =
- 0.5f * (state->fbout_data[0][0][j][sb] +
- state->fbout_data[1][0][j][sb]);
- }
- This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
- Warning message is:
- V557 Array overrun is possible. The value of 'j' index could reach 35. mp3_enc mp3enc_quantization_12_fp.c 639
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment