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

Expression is always true #63

Open
AppChecker opened this issue Jun 14, 2017 · 0 comments
Open

Expression is always true #63

AppChecker opened this issue Jun 14, 2017 · 0 comments

Comments

@AppChecker
Copy link

AppChecker commented Jun 14, 2017

Hi!

These expressions:

  1. src-IL/src/il_states.cpp
    if (Param >= 0 || Param <= 2) {
  2. src-IL/src/il_states.cpp
    if (Param >= -1 || Param <= 255) {
  3. src-IL/src/il_states.cpp#
#define IL_DXT1             0x0706
#define IL_DXT5             0x070A
if (Param >= IL_DXT1 || Param <= IL_DXT5 ...) {

is always true (for any value of Param variable).

These possible defects found by AppChecker

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

No branches or pull requests

1 participant