Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/sudoers/toke.l
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ switch_dir(struct include_stack *stack, char *dirpath, int verbose)
debug_decl(switch_dir, SUDOERS_DEBUG_PARSER);

count = read_dir_files(dirpath, &paths, verbose);
if (count > 0) {
if (count > 0 && count != SIZE_MAX) {
/* Sort the list as an array in reverse order. */
qsort(paths, count, sizeof(*paths), pl_compare);

Expand Down
Loading