All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] grub-core/lib/libgcrypt/cipher/rijndael.c 2 warnings.
@ 2015-04-13 10:47 Toomas Soome
  2015-04-13 16:56 ` Andrei Borzenkov
  0 siblings, 1 reply; 5+ messages in thread
From: Toomas Soome @ 2015-04-13 10:47 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]


hi!

first warning is about comparing signed int with unsigned (int i, unsigned keylen), second warning is suggesting to use { } around the block.

after this update, the grub-core/lib/libgcrypt-grub needs to be re-populated.

rgds,
toomas


[-- Attachment #2: rijndael.diff --]
[-- Type: application/octet-stream, Size: 751 bytes --]

diff --git a/grub-core/lib/libgcrypt/cipher/rijndael.c b/grub-core/lib/libgcrypt/cipher/rijndael.c
index 559550b..a064245 100644
--- a/grub-core/lib/libgcrypt/cipher/rijndael.c
+++ b/grub-core/lib/libgcrypt/cipher/rijndael.c
@@ -181,7 +181,8 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen)
   static int initialized = 0;
   static const char *selftest_failed=0;
   int rounds;
-  int i,j, r, t, rconpointer = 0;
+  unsigned i;
+  int j, r, t, rconpointer = 0;
   int KC;
   union
   {
@@ -227,7 +228,9 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen)
       KC = 4;
 
       if (0)
+	{
         ;
+	}
 #ifdef USE_PADLOCK
       else if ((_gcry_get_hw_features () & HWF_PADLOCK_AES))
         {

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-15  5:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-13 10:47 [PATCH] grub-core/lib/libgcrypt/cipher/rijndael.c 2 warnings Toomas Soome
2015-04-13 16:56 ` Andrei Borzenkov
2015-04-13 17:32   ` Toomas Soome
2015-04-15  5:16     ` Andrei Borzenkov
2015-04-15  5:44       ` Toomas Soome

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.