Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- #define SBMAX_l 22
- ...
- int l[1+SBMAX_l];
- ...
- inline static void
- recalc_divide_init(const lame_internal_flags * const gfc, ...)
- {
- int r0, r1;
- ...
- for (r0 = 0; r0 < 16; r0++) {
- ...
- for (r1 = 0; r1 < 8; r1++) {
- int a2 = gfc->scalefac_band.l[r0 + r1 + 2];
- ...
- }
- This suspicious code was found in LAME 3.xx project by PVS-Studio static code analyzer.
- Warning message is:
- V557 Array overrun is possible. The value of 'r0 + r1 + 2' index could reach 24. libmp3lame takehiro.c 895
- 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