Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uns rgwSpare0 [5];
- DumpHeader()
- {
- ....
- printUns ("rgwSpare0[0] = ", Fib.rgwSpare0[5], 0, 0, fTrue);
- printUns ("rgwSpare0[1] = ", Fib.rgwSpare0[1], 1, 1, fTrue);
- printUns ("rgwSpare0[2] = ", Fib.rgwSpare0[2], 0, 0, fTrue);
- printUns ("rgwSpare0[3] = ", Fib.rgwSpare0[3], 1, 1, fTrue);
- printUns ("rgwSpare0[4] = ", Fib.rgwSpare0[4], 2, 2, fTrue);
- ....
- }
- This is what should have been written here: printUns ("rgwSpare0[0] = ", Fib.rgwSpare0[0], 0, 0, fTrue);
- This suspicious code was found in Word11a project by PVS-Studio static code analyzer.
- Warning message is:
- V557 Array overrun is possible. The '5' index is pointing beyond array bound. dnatfile.c 444
- 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