You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template
class RelocationDirectory : pepp::msc::NonCopyable
{
private:
//! Setup the directory
void _setup(Image* image) {
m_image = image;
m_base = reinterpret_cast<decltype(m_base)>(
&image->base()[image->getPEHdr().rvaToOffset(
image->getPEHdr().getOptionalHdr().getDataDir(DIRECTORY_ENTRY_BASERELOC).VirtualAddress)]); //this line
m_section =
&image->getSectionHdrFromVa(image->getPEHdr().getOptionalHdr().getDataDir(DIRECTORY_ENTRY_BASERELOC).VirtualAddress);
}
}
In the line of m_base = *, rvaToOffset may return zero like empty relocation table.
The text was updated successfully, but these errors were encountered:
template
class RelocationDirectory : pepp::msc::NonCopyable
{
private:
//! Setup the directory
void _setup(Image* image) {
m_image = image;
m_base = reinterpret_cast<decltype(m_base)>(
&image->base()[image->getPEHdr().rvaToOffset(
image->getPEHdr().getOptionalHdr().getDataDir(DIRECTORY_ENTRY_BASERELOC).VirtualAddress)]); //this line
m_section =
&image->getSectionHdrFromVa(image->getPEHdr().getOptionalHdr().getDataDir(DIRECTORY_ENTRY_BASERELOC).VirtualAddress);
}
}
In the line of m_base = *, rvaToOffset may return zero like empty relocation table.
The text was updated successfully, but these errors were encountered: