forked from pool/tboot
``` pconf_legacy.c: In function ‘create’: pconf_legacy.c:327:16: error: allocation of insufficient size ‘20’ for type ‘tb_hash_t’ with size ‘64’ [-Werror=alloc-size] 327 | digest = malloc(SHA1_DIGEST_SIZE); | ^ ``` There's a union data type behind this. It's not an actual error. To get rid of the warning, the patch allocates the full union size, thereby wasting a bit of memory. OBS-URL: https://build.opensuse.org/package/show/security/tboot?expand=0&rev=120
27 lines
962 B
Diff
27 lines
962 B
Diff
Index: tboot-1.9.8/tboot/20_linux_tboot
|
|
===================================================================
|
|
--- tboot-1.9.8.orig/tboot/20_linux_tboot
|
|
+++ tboot-1.9.8/tboot/20_linux_tboot
|
|
@@ -72,7 +72,7 @@ CLASS="--class gnu-linux --class gnu --c
|
|
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
|
OS=GNU/Linux
|
|
else
|
|
- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
|
+ OS="${GRUB_DISTRIBUTOR}"
|
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' | cut -d' ' -f1) ${CLASS}"
|
|
fi
|
|
|
|
Index: tboot-1.9.8/tboot/20_linux_xen_tboot
|
|
===================================================================
|
|
--- tboot-1.9.8.orig/tboot/20_linux_xen_tboot
|
|
+++ tboot-1.9.8/tboot/20_linux_xen_tboot
|
|
@@ -63,7 +63,7 @@ CLASS="--class gnu-linux --class gnu --c
|
|
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
|
OS=GNU/Linux
|
|
else
|
|
- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
|
+ OS="${GRUB_DISTRIBUTOR}"
|
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
|
|
fi
|
|
|