]> code.ossystems Code Review - openembedded-core.git/commitdiff
nettle: The variable named p in the patch file was incorrectly named.
authorngutzmann <nathangutzmann@gmail.com>
Wed, 9 Mar 2016 16:17:31 +0000 (09:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Mar 2016 16:50:28 +0000 (16:50 +0000)
The variable in question should have been called ecc->p. The patch has been updated
so that the compilation of the nettle recipe would complete successfully. The backport
originated from this commit https://git.lysator.liu.se/nettle/nettle/commit/c71d2c9d20eeebb985e3872e4550137209e3ce4d

Signed-off-by: ngutzmann <nathangutzmann@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/nettle/nettle-2.7.1/CVE-2015-8803_8805.patch

index 1c4b9a98f2a045b15915d16d74dcafba10c74a0b..a956f426b8454acb66ae7df626cf8fe844d5a886 100644 (file)
@@ -40,7 +40,7 @@ Index: nettle-2.7.1/ecc-256.c
        u1 -= cy;
 -      u1 += cnd_add_n (t, rp + n - 4, ecc->p, 3);
 +
-+      cy = cnd_add_n (t, rp + n - 4, p->m, 2);
++      cy = cnd_add_n (t, rp + n - 4, ecc->p, 2);
 +      u0 += cy;
 +      u1 += (u0 < cy);
        u1 -= (-t) & 0xffffffff;