Commit 929bc18a authored by Christian Kandeler's avatar Christian Kandeler Committed by hjk

Elf reader: Fix asserts for 64 bit hosts.

Change-Id: I624926a8ce09c6fbbb90fbd851f66c7cc65c4842
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent e65b5b0c
......@@ -226,7 +226,7 @@ ElfReader::Result ElfReader::readIt()
}
quint32 e_phentsize = getHalfWord(data, m_elfData);
QTC_CHECK(e_phentsize == (is64Bit ? 44 : 32));
QTC_CHECK(e_phentsize == (is64Bit ? 56 : 32));
quint32 e_phnum = getHalfWord(data, m_elfData);
quint32 e_shentsize = getHalfWord(data, m_elfData);
......@@ -239,7 +239,7 @@ ElfReader::Result ElfReader::readIt()
quint32 e_shnum = getHalfWord(data, m_elfData);
quint32 e_shtrndx = getHalfWord(data, m_elfData);
QTC_CHECK(data == mapper.ustart + (is64Bit ? 58 : 52));
QTC_CHECK(data == mapper.ustart + (is64Bit ? 64 : 52));
if (quint64(e_shnum) * e_shentsize > fdlen) {
m_errorString = QLibrary::tr("'%1' is an invalid ELF object (%2)")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment