-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: keyutils wrap, add patch to fix a different signed comparison
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/keyutils.c b/keyutils.c | ||
index 48b779e..beeeb9b 100644 | ||
--- a/keyutils.c | ||
+++ b/keyutils.c | ||
@@ -672,7 +672,7 @@ key_serial_t find_key_by_type_and_desc(const char *type, const char *desc, | ||
if (errno == ENOMEM) | ||
break; | ||
} | ||
- if (n >= sizeof(rdesc) - 1) | ||
+ if ((unsigned long)n >= sizeof(rdesc) - 1) | ||
continue; | ||
rdesc[n] = '\0'; | ||
|