Skip to content

Conversation

@pscherz
Copy link

@pscherz pscherz commented Nov 24, 2025

When process_read_proc_file returns NULL there was a problem later on with uninitialized memory, resulting in a crash. Easily reproducible on bazzite 43 by just opening the process list dialog and trying to exit it by pressing either cancel or ok. Reproducible with and without sudo.

Rebuilt the Process struct to reduce extra heap allocs and make sure there is always a string to copy to.

Also resized other string arrays to powers of 2 for better memory locality (which probably doesn't matter).

Fixes #4

When `process_read_proc_file` returns NULL
there was a problem later on with uninitialized
memory.

Rebuilt  the Process struct to reduce extra heap allocs
and make sure there is always a string to copy to.
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.

Pressing "Attach Process" crashes program

1 participant