Skip to content

Guard sidebar widget container index#8307

Draft
plafosse wants to merge 1 commit into
devfrom
test_sidebar-qpointer-e9-api
Draft

Guard sidebar widget container index#8307
plafosse wants to merge 1 commit into
devfrom
test_sidebar-qpointer-e9-api

Conversation

@plafosse

@plafosse plafosse commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

Changes SidebarWidgetContainer::m_widgets leaf values from raw SidebarWidgetAndHeader* to QPointer<SidebarWidgetAndHeader> so the sidebar context index observes Qt-owned widgets safely.

Why

The E9 crash path points at stale sidebar widget/header pointers during view-change fan-out. The container index is not the owner; Qt parentage and the stacked widget hierarchy own these widgets. Using QPointer makes stale observer entries become null when Qt destroys the object.

Validation

  • git -C api diff --check
  • Parent demo UI build: cmake --build /private/tmp/bn-e9-build-demo --target binaryninjaui -j 8

Companion parent repo PR will update the submodule pointer and implementation.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant