Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Undefined Behavior in LastAddedAreaCache #211

Merged
merged 1 commit into from
Jun 28, 2020
Merged

Fix Undefined Behavior in LastAddedAreaCache #211

merged 1 commit into from
Jun 28, 2020

Conversation

hannesschulze
Copy link

CDockContainerWidget::removeDockArea currently checks if std::find returns nullptr – that should never be the case, it returns last if the element was not found. Because of this, LastAddedAreaCache[5] might get overwritten, which is out of range.

@githubuser0xFFFF githubuser0xFFFF merged commit 0225563 into githubuser0xFFFF:master Jun 28, 2020
@githubuser0xFFFF
Copy link
Owner

Thank you.

luelista pushed a commit to luelista/Qt-Advanced-Docking-System that referenced this pull request Mar 22, 2022
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.

2 participants