BoomerangDecompiler / boomerang

Boomerang Decompiler - Fighting the code-rot :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix for a segmentation fault I found.

RobR89 opened this issue · comments

In proc.cpp line 3264 there may sometimes be a segmentation fault when rename->getDef() returns null. This needs to be tested first, as follows.

    if(rename->getDef() != NULL) {
      SharedType ty = rename->getDef()->getTypeFor(rename->getSubExp1());
      Exp *local = newLocal(ty, *rename);
      if(DEBUG_LIVENESS)
        LOG << "renaming " << rename << " to " << local << "\n";
      mapSymbolTo(rename, local);
    }

Ya, I wonder why the "rename" has no def though 😦

commented

This should be fixed in the current develop version, so I'm closing this. Please open a new issue if Boomerang still crashes.