Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct
- {
- ...
- VM_ALIGN16_DECL(Ipp32f)
- nb_short[2][3][__ALIGNED(MAX_PPT_SHORT)];
- ...
- } mpaPsychoacousticBlock;
- static void mp3encPsy_short_window(....)
- {
- ...
- if (win_counter == 0) {
- nb_s = pBlock->nb_short[0][3];
- }
- ...
- }
- This is what should have been written here: 2.
- This suspicious code was found in IPP Samples project by PVS-Studio static code analyzer.
- Warning message is:
- V557 Array overrun is possible. The '3' index is pointing beyond array bound. mp3_enc mp3enc_psychoacoustic_fp.c 726
- 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