[OE-core] [oe-core][PATCH 1/1] mdadm: fix format-overflow
Joe Slater
joe.slater at windriver.com
Fri Jun 22 19:23:16 UTC 2018
nb[] is not quite big enough.
Signed-off-by: Joe Slater <joe.slater at windriver.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;
--
2.7.4
More information about the Openembedded-core
mailing list