Skip to content

RelativeVirtualAddress deprecation#3090

Open
corkamig wants to merge 8 commits into
mandiant:masterfrom
corkamig:rva_deprecation
Open

RelativeVirtualAddress deprecation#3090
corkamig wants to merge 8 commits into
mandiant:masterfrom
corkamig:rva_deprecation

Conversation

@corkamig
Copy link
Copy Markdown

@corkamig corkamig commented May 28, 2026

closes #3072

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed
  • This submission includes AI-generated code and I have provided details in the description.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request deprecates the RelativeVirtualAddress class by raising a DeprecationWarning upon instantiation, and adds a corresponding test and changelog entry. The feedback suggests using pytest.warns instead of modifying global warning filters in the test suite to prevent interference with other tests.

Comment thread tests/test_engine.py Outdated
Copy link
Copy Markdown
Collaborator

@williballenthin williballenthin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, please just update the warning text with more context.

Comment thread capa/features/address.py Outdated
Comment thread tests/test_engine.py
@corkamig corkamig requested a review from williballenthin June 1, 2026 15:40
Comment thread capa/features/address.py
"""a memory address relative to a base address"""

def __new__(cls, *args, **kwargs):
# TODO(corkamig): Removal for v3.5.0
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're currently at v9.4.0 for capa, so i think we should delete the code either in v10 or v11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

consider removing RelativeVirtualAddress

2 participants