We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6284b commit af6b2ccCopy full SHA for af6b2cc
1 file changed
view/pe/peview.cpp
@@ -1756,6 +1756,8 @@ bool PEView::Init()
1756
if (m_dataDirs[IMAGE_DIRECTORY_ENTRY_EXCEPTION].size % entrySize)
1757
throw PEFormatException("invalid table size");
1758
numExceptionEntries = m_dataDirs[IMAGE_DIRECTORY_ENTRY_EXCEPTION].size / entrySize;
1759
+ if (numExceptionEntries > (GetEnd() - GetStart()) / entrySize)
1760
+ throw PEFormatException("too many exception entries, table size exceeds available memory range");
1761
1762
// This DataVariable can end up creating a large array and rendering this in LinearView currently has performance implications
1763
// So instead we just create separate structures not in an array
0 commit comments