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
Thank you for your nice work. I just found that for an obejct section of type lief.PE.Section, if we invoke section.virtual_address, it will return the relative virtual address (RVA) with respect to the imagebase rather than the actual virtual address (i.e., imagebase + RVA).
And, I make another test. For an object section of type lief.ELF.Section, section.virtual_address will return the actual virtual address rather than RVA.
Describe the bug
Hi,
Thank you for your nice work. I just found that for an obejct
section
of typelief.PE.Section
, if we invokesection.virtual_address
, it will return the relative virtual address (RVA) with respect to the imagebase rather than the actual virtual address (i.e., imagebase + RVA).And, I make another test. For an object
section
of typelief.ELF.Section
,section.virtual_address
will return the actual virtual address rather than RVA.Is this discrepancy expected?
To Reproduce
Output:
Expected behavior
IIRC,
virtual_address
should refer toimagebase + RVA
rather thanRVA
.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: