Skip to content

fix: Crash when releasing only split in container - #7255

Merged
pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:fix/oob-close
Sep 8, 2026
Merged

pajlada merged 2 commits into
Chatterino:masterfrom
Nerixyz:fix/oob-close

Conversation

@Nerixyz

@Nerixyz Nerixyz commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Found this when testing #7254 - if you compile with a hardened/debug STL and close the only split in a container, there will be an assertion failure when trying to access back() of an empty vector. We never access that pointer, but are still calling the function.

Steps to reproduce:

  1. Create a new tab with the + button.
  2. Click in the empty container to open the channel selection dialog
  3. Click "cancel"

@pajlada
pajlada enabled auto-merge (squash) September 8, 2026 21:19
@pajlada
pajlada merged commit f660887 into Chatterino:master Sep 8, 2026
18 checks passed
babicekmarek pushed a commit to babicekmarek/streamally-chatterino that referenced this pull request Sep 14, 2026
Found this when testing Chatterino#7254 - if you compile with a hardened/debug STL
and close the only split in a container, there will be an assertion
failure when trying to access `back()` of an empty vector. We never
access that pointer, but are still calling the function.

Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
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