poweradminllc / PAExec

Remote execution, like PsExec
531 stars 177 forks source link

fixed from PVS-Studio #27

Closed ip-gpu closed 6 years ago

ip-gpu commented 6 years ago

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

V528 It is odd that pointer to 'wchar_t' type is compared with the L'\0' value. Probably meant: *cmdLinePastCompList == L'\0'. parsing.cpp 335 V618 It's dangerous to call the 'printf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str); paexec.cpp 334

poweradminllc commented 6 years ago

Great catches - thank you!