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

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

fixed from PVS-Studio #8

wants to merge 1 commit into from

Conversation

ip-gpu
Copy link

@ip-gpu ip-gpu commented Nov 21, 2017

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

There are two errors (or misprints), you're checking hSession after calling InternetConnect and HttpOpenRequest in place of the checking of hConnection and hRequest.
Therefore, if there will be unavailable UPLOAD_SERVER (upload.gyazo.com) or if there will be failed post request to it (maybe wrong answer from this server), then you will get null hConnection and/or hRequest and the application will crashes.
Please, apply these changes, because it is real bug.

V547 Expression '0 == hSession' is always false. gyazowin.cpp 863
V547 Expression '0 == hSession' is always false. gyazowin.cpp 873

V547 Expression '0 == hSession' is always false. gyazowin.cpp 863
V547 Expression '0 == hSession' is always false. gyazowin.cpp 873

See details in pull request.
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