Skip to content

Commit

Permalink
fix: keyutils wrap, add patch to fix a different signed comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Oct 28, 2024
1 parent ad27f8f commit 25920f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions subprojects/keyutils.wrap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ url = https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git
revision = master
depth = 1
patch_directory = keyutils
diff_files = keyutils_warnings_fix.diff

[provide]
keyutils = keyutils_dep
13 changes: 13 additions & 0 deletions subprojects/packagefiles/keyutils_warnings_fix.diff
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';

0 comments on commit 25920f4

Please sign in to comment.