Skip to content

Headless Bndb extracted from a container is parsed as Raw/Mapped #8184

Description

@bpotchik

Bug Description:
When BinaryView::Load receives a container (e.g. a zip) whose payload turns out to be a bndb, the extracted bytes are not routed through the database open path. View-type detection then runs against raw SQLite bytes, no BinaryViewType claims them, and the loader falls through to Mapped + linear sweep. The result is a "loaded" view containing fabricated functions from sweeping the SQLite file format. None of the analysis stored in the bndb is restored.

Steps To Reproduce:

  1. Place a bndb inside a zip archive (e.g. bin_ls.bndb.zip).
  2. Open the archive via headless/load API.

Expected Behavior:
Loading a bndb from a container in headless produces the same analyzed view as loading that bndb directly from disk.

Activity

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

Metadata

Metadata

Assignees

Labels

Effort: LowIssues require < 1 week of workImpact: LowIssue is a papercut or has a good, supported workaround

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions