Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Fix Client UI crash when removing agent in Table View#581

Open
OBITORASU wants to merge 1 commit intoHavocFramework:mainfrom
OBITORASU:patch-1
Open

Fix Client UI crash when removing agent in Table View#581
OBITORASU wants to merge 1 commit intoHavocFramework:mainfrom
OBITORASU:patch-1

Conversation

@OBITORASU
Copy link

There is a bug that causes the client to crash if the user tries to remove an agent from the table view. This is due to a use-after-erase where MainNode->Node->removeChild( NodeList[ i ]->Node ) is being called after NodeList.erase( NodeList.begin() + i ). This can lead to accessing the wrong element or undefined behavior via an out-of-bounds access.

The change proposed moves the removeChild call before the erase to ensure operations on NodeList[i] are done while the index is valid.

There is a bug which causes the client to crash if the user tries to remove an agent from the table view.
@OBITORASU
Copy link
Author

Fixes and Resolves #581.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant