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 crash on forgetting a window on a stack #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xaizek
Copy link
Contributor

@xaizek xaizek commented Jan 26, 2024

Similarly to b2a72cf which was caused by c->next following free(c), s->next is following free(s) causing a crash.

A way to reproduce:

  1. Start xterm
  2. Run gvim -f
  3. Put GVim's window on a stack
  4. Press Ctrl-Z in xterm
  5. Execute exit twice (first time just prints a warning about a stopped job)
  6. euclid-wm should crash here on trying to forget a window that's currently hidden, specifically on dropping a corresponding struct stack_item

Similarly to b2a72cf which was caused
by `c->next` following `free(c)`, `s->next` is following `free(s)`
causing a crash.

A way to reproduce:
 1. Start xterm
 2. Run `gvim -f`
 3. Put GVim's window on a stack
 4. Press Ctrl-Z in xterm
 5. Execute `exit` twice (first time just prints a warning about a
    stopped job)
 6. euclid-wm should crash here on trying to forget a window that's
    currently hidden, specifically on dropping a corresponding
    `struct stack_item`
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.

None yet

1 participant