Skip to content

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

@bpotchik

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.

Metadata

Metadata

Assignees

Labels

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

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions