Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define MAGIC_CONTINUE_NUMBER_LO 0xFE
- #define MAGIC_CONTINUE_NUMBER_HI 0x7F
- /* I can't believe this actually worked */
- void bufferResolveJumps(Buffer out)
- {
- ....
- if (*p == MAGIC_CONTINUE_NUMBER_LO &&
- *(p+1) == MAGIC_CONTINUE_NUMBER_HI)
- {
- ....
- }
- You're right not to believe. It doesn't work indeed! :-)
- This suspicious code was found in CamStudio project by PVS-Studio static code analyzer.
- Warning message is:
- V547 Expression '* p == 0xFE' is always false. The value range of char type: [127, -128]. compile.cpp 527
- 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
Advertisement