[Armadeus-commitlog] armadeus branch, master, updated. armadeus-7.0-301-ga435ff891
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2021-10-19 16:29:11
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via a435ff891b5e2f5a2699d26fb4833cae3867d998 (commit)
from 956bbd54879777c62a21e273de9f4cb920645704 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a435ff891b5e2f5a2699d26fb4833cae3867d998
Author: Julien BOIBESSOT <jul...@ar...>
Date: Tue Oct 19 18:09:47 2021 +0200
[UBOOT] 2017.01: fix bug preventing to have sha256 encoded boot password
-----------------------------------------------------------------------
Summary of changes:
...oboot-fix-sha256-password-computing-abort.patch | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 patches/u-boot/2017.01/0611-armadeus-common-autoboot-fix-sha256-password-computing-abort.patch
diff --git a/patches/u-boot/2017.01/0611-armadeus-common-autoboot-fix-sha256-password-computing-abort.patch b/patches/u-boot/2017.01/0611-armadeus-common-autoboot-fix-sha256-password-computing-abort.patch
new file mode 100644
index 000000000..325f6308b
--- /dev/null
+++ b/patches/u-boot/2017.01/0611-armadeus-common-autoboot-fix-sha256-password-computing-abort.patch
@@ -0,0 +1,26 @@
+Fix "buffer with size == 0" abort when computing sha256 password check
+
+(memset() stuff is optional I think)
+
+Signed-off-by: Julien Boibessot <jul...@ar...>
+
+diff -urN uboot-2017.01/common/autoboot.c uboot-2017.01.mod/common/autoboot.c
+--- uboot-2017.01/common/autoboot.c 2017-01-09 17:57:05.000000000 +0100
++++ uboot-2017.01.mod/common/autoboot.c 2021-10-19 17:43:06.726693338 +0200
+@@ -57,12 +57,15 @@
+ const char *algo_name = "sha256";
+ u_int presskey_len = 0;
+ int abort = 0;
+- int size;
++ int size = SHA256_SUM_LEN;
+ int ret;
+
+ if (sha_env_str == NULL)
+ sha_env_str = CONFIG_AUTOBOOT_STOP_STR_SHA256;
+
++ memset(presskey, 0, MAX_DELAY_STOP_STR);
++ memset(sha, 0, SHA256_SUM_LEN);
++
+ /*
+ * Generate the binary value from the environment hash value
+ * so that we can compare this value with the computed hash
hooks/post-receive
--
armadeus
|