Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed from PVS-Studio #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixed from PVS-Studio #41

wants to merge 1 commit into from

Conversation

ip-gpu
Copy link

@ip-gpu ip-gpu commented Oct 30, 2017

I'm a member of the Pinguem.ru competition on finding errors in open source projects. A bug, found using PVS-Studio. Warnings:

V512 A call of the 'swprintf' function will lead to overflow of the buffer 'output'. colorpicker.cpp 545
V575 The number of processed elements should be passed to the 'swprintf' function as the second argument instead of buffer's size in bytes. colorpicker.cpp 545
V547 Expression 't0 > 0xFF' is always false. colorpicker.cpp 565
V557 Array overrun is possible. The value of 'i + 1' index could reach 50. nppqcp.cpp 597, 945
V796 It is possible that 'break' statement is missing in switch statement. nppqcp.cpp 354

V512 A call of the 'swprintf' function will lead to overflow of the buffer 'output'. colorpicker.cpp 545
V575 The number of processed elements should be passed to the 'swprintf' function as the second argument instead of buffer's size in bytes. colorpicker.cpp 545
V547 Expression 't0 > 0xFF' is always false. colorpicker.cpp 565
V557 Array overrun is possible. The value of 'i + 1' index could reach 50. nppqcp.cpp 597, 945
V796 It is possible that 'break' statement is missing in switch statement. nppqcp.cpp 354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant