Skip to content

Fix write to freed memory after deleting the last board.#61

Merged
cknave merged 1 commit intocknave:mainfrom
kristomu:board-commit-fix
Nov 29, 2023
Merged

Fix write to freed memory after deleting the last board.#61
cknave merged 1 commit intocknave:mainfrom
kristomu:board-commit-fix

Conversation

@kristomu
Copy link
Copy Markdown
Contributor

This doesn't seem to produce any immediate crashes in main, but valgrind reports an error, and it causes a more immediate crash in my bind-handling PR.

The bug can be reproduced by creating a new world, then a new board, making it the current board, deleting it in the selector, and then selecting the title screen.

@kristomu kristomu changed the title Fix write to freed memory access after deleting the last board. Fix write to freed memory after deleting the last board. Nov 28, 2023
This doesn't seem to produce any immediate crashes in main, but
valgrind reports an error, and it causes a more immediate crash in
my bind-handling PR.

The bug can be reproduced by creating a new world, then a new board,
making it the current board, deleting it in the selector, and then
selecting the title screen.
@cknave
Copy link
Copy Markdown
Owner

cknave commented Nov 29, 2023

Thanks for the fix! I should have some time to look at #60 this weekend.

@cknave cknave merged commit 39e1bba into cknave:main Nov 29, 2023
kristomu added a commit to kristomu/kevedit that referenced this pull request Dec 6, 2023
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