mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 23:05:12 +00:00
This has been consistently wrong
This commit is contained in:
@@ -335,8 +335,10 @@ namespace SabreTools.Serialization.Deserializers
|
||||
|
||||
if (optionalHeader.CertificateTable != null)
|
||||
{
|
||||
offset = initialOffset
|
||||
+ optionalHeader.CertificateTable.VirtualAddress.ConvertVirtualAddress(pex.SectionTable);
|
||||
// The Certificate Table entry points to a table of attribute certificates. These
|
||||
// certificates are not loaded into memory as part of the image. As such, the first
|
||||
// field of this entry, which is normally an RVA, is a file pointer instead.
|
||||
offset = initialOffset + optionalHeader.CertificateTable.VirtualAddress;
|
||||
if (offset > initialOffset && offset < data.Length)
|
||||
{
|
||||
// Get the required table size
|
||||
|
||||
Reference in New Issue
Block a user