Skip to content

Fix #6607: Fix format autodetection for virtual URIs in rz-test - #6669

Open
DRJ-YDV wants to merge 1 commit into
rizinorg:devfrom
DRJ-YDV:fix-6607
Open

Fix #6607: Fix format autodetection for virtual URIs in rz-test#6669
DRJ-YDV wants to merge 1 commit into
rizinorg:devfrom
DRJ-YDV:fix-6607

Conversation

@DRJ-YDV

@DRJ-YDV DRJ-YDV commented Aug 18, 2026

Copy link
Copy Markdown

Closes #6607

This PR fixes the issue where rz-test fails to autodetect the format for virtual URIs (like malloc:// or mmap://).

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 using obR, 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 obR successfully detects formats (like ELF and Mach-O) from malloc:// and hex:// URIs after writes.

…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rz-test] Enable format autodetection for virtual URIs (e.g., malloc://)

1 participant