Skip to content

lib: reject NULL command selectors - #418

Merged
jiegec merged 1 commit into
lsof-org:masterfrom
hja-oss:fix/liblsof-null-command
Nov 29, 2026
Merged

jiegec merged 1 commit into
lsof-org:masterfrom
hja-oss:fix/liblsof-null-command

Conversation

@hja-oss

@hja-oss hja-oss commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Follow up on #417 by rejecting NULL arguments in the plain-command selector.

lsof_select_process(ctx, NULL, exclude) can silently add an empty-prefix selector or crash during conflict checking. Return LSOF_ERROR_INVALID_ARGUMENT instead.

Extend the existing NULL-argument test and clarify the API documentation.

@jiegec
jiegec merged commit 8552715 into lsof-org:master Nov 29, 2026
20 checks passed
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