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 #40

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

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:

V618 It's dangerous to call the 'fprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str); parameters.cpp 174
V728 An excessive check 'Recurse == 0' can be simplified. The '||' operator is surrounded by opposite expressions. klustakwik.cpp 1519

V618 It's dangerous to call the 'fprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str); parameters.cpp 174
V728 An excessive check 'Recurse == 0' can be simplified. The '||' operator is surrounded by opposite expressions. klustakwik.cpp 1519
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.

1 participant