-
-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Milestone
Description
#93 improved module references by using optional 0-based usize
indexes instead of requiring to subtract 1 to resolve modules. In #93 (comment), @mstange points out that same is true for PdbInternalSectionOffset::section
:
it was a section index, not a module index.
sections.get((section_index - 1) as usize)
The most common usage for section offsets so far was to convert them to RVAs via an OMAP. Internally, this ran the checked sub (going back to #87):
However, since there are other direct uses of the section offset, it would be safer to make section: Option<usize>
as well.
Metadata
Metadata
Assignees
Labels
No labels