ghidra: fix lints

This commit is contained in:
Willi Ballenthin
2025-11-04 09:22:07 +00:00
parent 14996956ea
commit 92b6916030

View File

@@ -320,7 +320,7 @@ def addr_to_file_offset(addr: ghidra.program.model.address.Address) -> int:
- compute file offset = block.getStartingOffset() + section-relative offset
- if no block matches, fall back to subtracting program image base
"""
prog = currentProgram() # type: ignore[name-defined] # noqa: F821
prog = currentProgram() # type: ignore[name-defined] # noqa: F821
aoff = addr.getOffset()
for block in prog.getMemory().getBlocks(): # type: ignore[name-defined] # noqa: F821