[oe-commits] [openembedded-core] 04/19: mdadm: fix format-overflow

git at git.openembedded.org git at git.openembedded.org
Mon Jul 2 21:20:56 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 76f6cf2fdb0c81679055dc18c1ba8d9e195889ac
Author: Joe Slater <joe.slater at windriver.com>
AuthorDate: Fri Jun 22 12:23:16 2018 -0700

    mdadm: fix format-overflow
    
    nb[] is not quite big enough.
    
    Signed-off-by: Joe Slater <joe.slater at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 .../0002-mdadm-Specify-enough-length-when-write-to-buffer.patch     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/mdadm/files/0002-mdadm-Specify-enough-length-when-write-to-buffer.patch b/meta/recipes-extended/mdadm/files/0002-mdadm-Specify-enough-length-when-write-to-buffer.patch
index cbce053..6bbe8f4 100644
--- a/meta/recipes-extended/mdadm/files/0002-mdadm-Specify-enough-length-when-write-to-buffer.patch
+++ b/meta/recipes-extended/mdadm/files/0002-mdadm-Specify-enough-length-when-write-to-buffer.patch
@@ -24,6 +24,10 @@ Change the length to 47.
 
 Signed-off-by: Xiao Ni <xni at redhat.com>
 Signed-off-by: Jes Sorensen <Jes.Sorensen at gmail.com>
+
+nb[] actually needs to be at least 12, but we will make it 16.
+
+Signed-off-by: Joe Slater <joe.slater at windriver.com>
 ---
 Upstream-Status: Backport
  Detail.c | 2 +-
@@ -53,7 +57,7 @@ index 938cfd9..f5b4507 100644
  		mdp_disk_t *dp;
  		char *dv;
 -		char nb[5];
-+		char nb[11];
++		char nb[16];
  		int wonly, failfast;
  		if (d>=0) dp = &sb->disks[d];
  		else dp = &sb->this_disk;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list