Skip to contentSkip to conversation

nettle: The variable named p in the patch file was incorrectly named.

PATCH In review ngutzmann 2 participants 2 messages Mar 9, 2016 – Mar 11, 2016

lore
Share & tools
lore

ngutzmann

author
#0 lore raw

PATCH v2 1/1 nettle: The variable named p in the patch file was incorrectly named.

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

---
 meta/recipes-support/nettle/nettle-2.7.1/CVE-2015-8803_8805.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/nettle/nettle-2.7.1/CVE-2015-8803_8805.patch +1 -1
index 1c4b9a9..a956f42 100644
@@ -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;
Signature · 1 line
2.1.0
#1 lore raw
Quoted 7 lines · ngutzmann

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/c71d2c9d20eeebb985e38
72e4550137209e3ce4d

Thanks a lot for this patch, I've just proposed it for inclusion in the Fido branch.

I missed this originally because it's not tagged fido, for future it's worth pointing out that in order to be sure patches for stable branches are noticed by the maintainers we request the subject is prefixed with [branchname].

Thanks again for your contribution.

Joshua