Skip to content

Fix null pointer dereferences in apple process iterator - #130

Open
SAY-5 wants to merge 1 commit into
opsengine:masterfrom
SAY-5:fix-apple-null-checks
Open

SAY-5 wants to merge 1 commit into
opsengine:masterfrom
SAY-5:fix-apple-null-checks

Conversation

@SAY-5

@SAY-5 SAY-5 commented Aug 26, 2026

Copy link
Copy Markdown

Fixes #129

Two malloc calls in process_iterator_apple.c were missing NULL checks: unique_nonzero_ints would memcpy into a failed allocation, and init_process_iterator would keep going after logging the malloc failure instead of returning -1 like the other error paths in that function.

Signed-off-by: Sai Asish Y <say.apm35@gmail.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.

Null Pointer Dereference in Apple Process Iterator

1 participant