DentonW / DevIL

Developer's Image Library (DevIL) is a cross-platform image library utilizing a simple syntax to load, save, convert, manipulate, filter, and display a variety of images with ease. It is highly portable and has been ported to several platforms.
http://openil.sourceforge.net/
GNU Lesser General Public License v2.1
446 stars 138 forks source link

Expression is always true #63

Open AppChecker opened 7 years ago

AppChecker commented 7 years ago

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