-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
search: Fix a NULL ptr deref with zero terms
Here `clang-analyzer` found a legitimate bug, through a quite deep call stack. Before this change, providing zero search terms like this results in a segfault: ``` $ rpmostree_busctl_call_os Search as 0 ``` In exactly the way predicted by the static analysis. Verify we have at least one term at entry into the function, and also add further assertions later.
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters