Skip to content

Commit

Permalink
Release of v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeac committed Jan 11, 2020
2 parents d4d9aea + f7eae82 commit c5ec99d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
9 changes: 8 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
v0.5.2 (2020-1-11)
------------------
- Fixed: Crash when checking whether a LibProc returns while no FrontEnd is loaded.
- Fixed: Crash when re-decoding while no FrontEnd is loaded.
- Fixed: Whitespace issue in log output.
- Fixed: Attempt to load 8 bit executables even though Boomerang does not support them.

v0.5.1 (2019-10-11)
-----------------------
-------------------
- Fixed: Possible crash when replacing Phi by Assign.
- Fixed: Possible crash when analyzing binaries with a large number of debug information on Windows.
- Fixed: Wrong decompilation of binaries containing a `bswap` instruction.
Expand Down
2 changes: 1 addition & 1 deletion src/boomerang-plugins/decoder/csx86/CapstoneX86Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ bool CapstoneX86Decoder::initialize(Project *project)
case 16: cs::cs_option(m_handle, cs::CS_OPT_MODE, cs::CS_MODE_16); break;
case 32: cs::cs_option(m_handle, cs::CS_OPT_MODE, cs::CS_MODE_32); break;
case 64: cs::cs_option(m_handle, cs::CS_OPT_MODE, cs::CS_MODE_64); break;
default: break;
default: return false;
}

return true;
Expand Down
2 changes: 2 additions & 0 deletions src/boomerang-plugins/loader/pe/Win32BinaryLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ void Win32BinaryLoader::initialize(BinaryFile *file, BinarySymbolTable *symbols)
unload();
m_binaryImage = file->getImage();
m_symbols = symbols;

file->setBitness(32);
}


Expand Down
10 changes: 9 additions & 1 deletion src/boomerang/db/Prog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,20 @@ bool Prog::isWin32() const

QString Prog::getRegNameByNum(RegNum regNum) const
{
if (!m_fe || !m_fe->getDecoder()) {
return "";
}

return m_fe->getDecoder()->getRegNameByNum(regNum);
}


int Prog::getRegSizeByNum(RegNum regNum) const
{
if (!m_fe || !m_fe->getDecoder()) {
return 0;
}

return m_fe->getDecoder()->getRegSizeByNum(regNum);
}

Expand Down Expand Up @@ -635,7 +643,7 @@ bool Prog::decodeFragment(UserProc *proc, Address a)

bool Prog::reDecode(UserProc *proc)
{
if (!proc) {
if (!proc || !m_fe) {
return false;
}

Expand Down
4 changes: 4 additions & 0 deletions src/boomerang/db/proc/LibProc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ bool LibProc::isLib() const

bool LibProc::isNoReturn() const
{
if (!m_prog->getFrontEnd()) {
return false;
}

return m_prog->getFrontEnd()->isNoReturnCallDest(this->getName()) || m_signature->isNoReturn();
}

Expand Down
2 changes: 1 addition & 1 deletion src/boomerang/util/log/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void Log::writeLogHeader()
logDirect(LogLevel::Message, __FILE__, __LINE__, "This is Boomerang " BOOMERANG_VERSION);
logDirect(LogLevel::Message, __FILE__, __LINE__, "Log initialized.");
logDirect(LogLevel::Message, __FILE__, __LINE__,
"Log level is '" + levelToString(getLogLevel()) + "'.");
"Log level is '" + levelToString(getLogLevel()).trimmed() + "'.");
}


Expand Down

0 comments on commit c5ec99d

Please sign in to comment.