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:
- Place a bndb inside a zip archive (e.g. bin_ls.bndb.zip).
- 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.
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:
Expected Behavior:
Loading a bndb from a container in headless produces the same analyzed view as loading that bndb directly from disk.