Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PHP_CLI_API size_t sapi_cli_single_write(....)
- {
- ....
- size_t shell_wrote;
- shell_wrote = cli_shell_callbacks.cli_shell_write(....);
- if (shell_wrote > -1) { //<==
- return shell_wrote;
- }
- ....
- }
- This suspicious code was found in PHP project by PVS-Studio static code analyzer.
- Warning message is:
- V605 Consider verifying the expression: shell_wrote > - 1. An unsigned value is compared to the number -1. php_cli.c 266
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment