BoomerangDecompiler / boomerang

Boomerang Decompiler - Fighting the code-rot :)
Other
370 stars 59 forks source link

Null pointer dereference in StatementHelper.cpp #264

Closed frankieliu closed 4 years ago

frankieliu commented 4 years ago

OS:

Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic

Boomerang version or git hash:

Error during compilation

Steps to reproduce:

during make -j$(nproc)

/home/adam/projects/bomb/boomerang/src/boomerang/ssl/statements/StatementHelper.cpp: In function ‘bool condToRelational(SharedExp&, BranchType)’: /home/adam/projects/bomb/boomerang/src/boomerang/ssl/statements/StatementHelper.cpp:149:96: error: null pointer dereference [-Werror=null-dereference] else if (flagsParam->getOper() != opBitAnd || !flagsParam->getSubExp2()->isIntConst()) {



Just to pass this null pointer dereference I removed the last flagsParam check, the rest compiled just fine.