Fix #6607: Fix format autodetection for virtual URIs in rz-test - #6669
Open
DRJ-YDV wants to merge 1 commit into
Open
Fix #6607: Fix format autodetection for virtual URIs in rz-test#6669DRJ-YDV wants to merge 1 commit into
DRJ-YDV wants to merge 1 commit into
Conversation
…h obR This applies the fix proposed in PR rizinorg#6668 to resolve issue rizinorg#6607. It enables format autodetection for virtual URIs such as malloc:// by allowing rizin and rz-test to reload bin info from the live buffer. Co-authored-by agent: Antigravity/Gemini 3.1 Pro (High)
DRJ-YDV
requested review from
Rot127,
b1llow,
kazarmy,
notxvilka,
ret2libc,
thestr4ng3r and
wargio
as code owners
August 18, 2026 12:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6607
This PR fixes the issue where
rz-testfails to autodetect the format for virtual URIs (likemalloc://ormmap://).Previously, autodetection would be skipped when the target file wasn't a valid physical file path, forcing us to explicitly define the format/architecture even when we had enough pre-filled magic bytes or subsequent writes.
This enables
rz-test(and the core engine) to reload the bin info directly from the live buffer usingobR, so format autodetection works correctly for these virtual URIs.This is essentially the same approach proposed in #6668. I've also added tests to ensure
obRsuccessfully detects formats (like ELF and Mach-O) frommalloc://andhex://URIs after writes.