Skip to content

Comments

fixed from PVS-Studio#40

Open
ip-gpu wants to merge 1 commit intoklusta-team:masterfrom
ip-gpu:PVS_fixes
Open

fixed from PVS-Studio#40
ip-gpu wants to merge 1 commit intoklusta-team:masterfrom
ip-gpu:PVS_fixes

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