Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ipp32f pa_nb_long[NUM_CHANNELS][2][MAX_PPT_LONG];
- MP3Status mp3enc_psychoacousticInit(....)
- {
- ...
- for (ch = 0; ch < NUM_CHANNELS; ch++)
- for (i = 0; i < MAX_PPT_LONG; i++) {
- for (j = 0; j < 3; j++)
- state->pa_nb_long[ch][j][i] = (Ipp32f)1.0e30;
- }
- ...
- }
- This is what should have been written here: for (j = 0; j < 2; j++)
- 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 2. mp3_enc mp3enc_psychoacoustic_fp.c 361
- 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