lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 15 Jul 2014 11:12:15 +0200
From:	Klemen Jan Enova <klemen.jan.enova@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: [PATCH] scripts: sortextable: change type and initialise variable

Change the type of 'relocs_size' from 'int' to 'Elf32_Word' and 
initialize it to 0, to fix the "maybe uninitialised variable" compiler 
warning.

Signed-off-by: Klemen Jan Enova <klemen.jan.enova@...il.com>
---
diff --git a/scripts/sortextable.h b/scripts/sortextable.h
index 8fac3fd..537858d 100644
--- a/scripts/sortextable.h
+++ b/scripts/sortextable.h
@@ -103,7 +103,7 @@ do_func(Elf_Ehdr *ehdr, char const *const fname, 
table_sort_
         Elf_Sym *sort_needed_sym;
         Elf_Shdr *sort_needed_sec;
         Elf_Rel *relocs = NULL;
-       int relocs_size;
+       Elf32_Word relocs_size = 0;
         uint32_t *sort_done_location;
         const char *secstrtab;
         const char *strtab;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ