Skip to content

Fix NULL pointer dereference in ThreadController::remove#2

Merged
thebentern merged 1 commit intomeshtastic:masterfrom
esev:remove_null
Oct 6, 2025
Merged

Fix NULL pointer dereference in ThreadController::remove#2
thebentern merged 1 commit intomeshtastic:masterfrom
esev:remove_null

Conversation

@esev
Copy link
Copy Markdown

@esev esev commented Dec 26, 2024

When a thread is removed its value is set to NULL. ThreadController::remove should check for a NULL entry before accessing the ThreadID.

@compumike
Copy link
Copy Markdown

@thebentern @fifieldt I'm not sure who's managing this repo, but I ran into this same issue (while developing something that occasionally adds and removes a thread) and this PR's fix is correct and important 👍

Without this fix:

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
...

crash and reboot

@thebentern thebentern merged commit b841b04 into meshtastic:master Oct 6, 2025
@thebentern
Copy link
Copy Markdown

@compumike thanks for the ping! This one slipped through the cracks in the soup of Github notifications 😅

@compumike
Copy link
Copy Markdown

@thebentern of course! i've declared notification bankruptcy 😂

@thebentern
Copy link
Copy Markdown

It's nuts! I had to turn off some repos like the docs because I can't dig myself out in the morning

@thebentern of course! i've declared notification bankruptcy 😂

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.

3 participants