Advertisement
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_scale_factor_calc_l2(MP3Enc *state)
- {
- ...
- for (ch = 0; ch < stereo + state->com.mc_channel; ch++) {
- for (t = 0; t < 3; t++) {
- for (sb = 0; sb < sblimit_real; sb++){
- for (j = 0; j < 12; j++)
- fbout[j] = state->fbout_data[ch][0][t * 12 + j][sb];
- ...
- }
- If it can be possible that t == 2, while j == 11, an array overrun will occur.
- 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 't * 12 + j' index could reach 35. mp3_enc mp3enc_quantization_12_fp.c 275
- 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
Advertisement