65749575ab
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From 73b47b7cb5133302087980ef321a83670d383db1 Mon Sep 17 00:00:00 2001
|
|
From: mamonet <maamoun.tk@gmail.com>
|
|
Date: Fri, 4 Jun 2021 09:36:15 +0000
|
|
Subject: [PATCH] Bug 1566124 - Fix counter increase in ppc-gcm-wrap.c
|
|
r=bbeurdouche
|
|
|
|
Differential Revision: https://phabricator.services.mozilla.com/D116297
|
|
|
|
--HG--
|
|
extra : moz-landing-system : lando
|
|
---
|
|
lib/freebl/ppc-gcm-wrap.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/freebl/ppc-gcm-wrap.c b/lib/freebl/ppc-gcm-wrap.c
|
|
index ca3d8ee69..ac58744cb 100644
|
|
--- a/nss/lib/freebl/ppc-gcm-wrap.c
|
|
+++ b/nss/lib/freebl/ppc-gcm-wrap.c
|
|
@@ -155,7 +155,7 @@ ppc_aes_gcmInitCounter(ppc_AES_GCMContext *gcm,
|
|
/* Promote the counter by 1 */
|
|
gcm->CTR[14] += !(++gcm->CTR[15]);
|
|
gcm->CTR[13] += !(gcm->CTR[15]) && !(gcm->CTR[14]);
|
|
- gcm->CTR[12] += !(gcm->CTR[15]) && !(gcm->CTR[13]) && !(gcm->CTR[12]);
|
|
+ gcm->CTR[12] += !(gcm->CTR[15]) && !(gcm->CTR[14]) && !(gcm->CTR[13]);
|
|
|
|
/* Now hash AAD - it would actually make sense to seperate the context
|
|
* creation from the AAD, because that would allow to reuse the H, which
|