From patchwork Sat Feb 20 16:29:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Bres X-Patchwork-Id: 1442646 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=VLzaxsBe; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DjYn34k24z9sVS for ; Sun, 21 Feb 2021 03:29:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 370C085E65; Sat, 20 Feb 2021 16:29:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M9IcRQnoLoAR; Sat, 20 Feb 2021 16:29:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A336A85D54; Sat, 20 Feb 2021 16:29:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 74D241BF954 for ; Sat, 20 Feb 2021 16:29:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 70B198386F for ; Sat, 20 Feb 2021 16:29:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eBSBJyVdZ4QK for ; Sat, 20 Feb 2021 16:29:22 +0000 (UTC) Received: by smtp1.osuosl.org (Postfix, from userid 1001) id 763778387D; Sat, 20 Feb 2021 16:29:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by smtp1.osuosl.org (Postfix) with ESMTPS id AC1D18386F for ; Sat, 20 Feb 2021 16:29:20 +0000 (UTC) Received: by mail-wm1-f44.google.com with SMTP id o10so5646370wmc.1 for ; Sat, 20 Feb 2021 08:29:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mzHDaQx7X33WzBrlxQ/zSkotFUwdkyPQvy3M6ZwsVPQ=; b=VLzaxsBe79CYecMjyHJrp24v/sjNvNwWLYq0owcWa6ksUfbQk4R4XqzENGrycvER0e hwgyIh6T3m79L0aa2AgGmitMEbl4e2rMAUCcoQ4VKjXEr9I0JRv8tatEpE5zeaRP62V2 O6oeqaBr4QqDpvBvGGK4MO4b6fFfg7/j6TQWZPFYfXG2OQgavSaOrPyfZFvBf0aVZ42f 9ZHicyi/B0H783lIxEa9IMVUHQ9zZFfYUati3ScmovP9SaoSteyw4V3v0s1uN5Lb+849 uBBhFaePPrputvKkIabNjTr0P/gJ+8b3BXoKFfw9b7U2YQ5iMz+spfrzZ880IYoHEwdC 3vLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mzHDaQx7X33WzBrlxQ/zSkotFUwdkyPQvy3M6ZwsVPQ=; b=LdiNaLa1BwDb7U4+plXAKB07TZlOF9gad/rTbjmAfEqCWw4GY7TeJ7Fnpe0XK9a/yE WjMIibaV7f8QPCadmCpwInDFQWMguH2qKX/HMnUJci8RBPpSJFXqReho/p60PisDQF7I RhxNxPScoXcmmRtLi1Q5D1UcpbBp1BzvvbJwTMe6MQMgf3ELLKU30VI7YK2WX7GgIuxP UllfP4VZFz/SC0zcf+dbuInI85EBoXCpt86Bx3oA5YEbfbItS1G8l/nHTcdVcHlsHYMb 3In+HJRYHrsIvnaeECemoi+YEdCHF7QtWV8rKgsBQQloeOIDulJvgsN/0M95ZtNHd4FS TyJQ== X-Gm-Message-State: AOAM53095DAxDxQw/83eSoc39HtAzBW6u6qfPx5B3TddfKDrbaLays4G uzPj+MiRhjOpXTFu5bEbqxKkXs4yYhA= X-Google-Smtp-Source: ABdhPJyCyX4LzTkMi8pk9pIbCl3EhkAhlJKs0kXkBfFdFHGUSO9dmw8r0oZkxhY2eR/KxlOtgzStbQ== X-Received: by 2002:a1c:2c05:: with SMTP id s5mr12993888wms.70.1613838558771; Sat, 20 Feb 2021 08:29:18 -0800 (PST) Received: from pc-140.home ([2a01:cb15:81d3:300:7285:c2ff:fea6:cc85]) by smtp.gmail.com with ESMTPSA id d23sm18497536wmd.11.2021.02.20.08.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Feb 2021 08:29:18 -0800 (PST) From: guillaume.bressaix@gmail.com To: buildroot@busybox.net Date: Sat, 20 Feb 2021 17:29:16 +0100 Message-Id: <20210220162916.3424-1-guillaume.bressaix@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH/next] package/libxcrypt: fix conversion error X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Guillaume W. Bres" Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Guillaume W. Bres" Fixes: http://autobuild.buildroot.net/results/e9a058a8c98daf197cd9d7ac632e0cb5707d524f Some sensitive compilers may raise a warning that turns into an error on this line. Patch submitted to mainline, waiting for approval, see: https://github.com/besser82/libxcrypt/pull/119 Signed-off-by: Guillaume W. Bres --- ...gost3411-core.c-fix-conversion-error.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/libxcrypt/0001-lib-alg-gost3411-core.c-fix-conversion-error.patch diff --git a/package/libxcrypt/0001-lib-alg-gost3411-core.c-fix-conversion-error.patch b/package/libxcrypt/0001-lib-alg-gost3411-core.c-fix-conversion-error.patch new file mode 100644 index 0000000000..5488d15a3d --- /dev/null +++ b/package/libxcrypt/0001-lib-alg-gost3411-core.c-fix-conversion-error.patch @@ -0,0 +1,26 @@ +From c7bf2cf8e610bb26bece7f3a2bc5b47d7c659c7d Mon Sep 17 00:00:00 2001 +From: "Guillaume W. Bres" +Date: Sat, 20 Feb 2021 16:51:04 +0100 +Subject: [PATCH] lib/alg-gost3411-core.c: fix conversion error + +Signed-off-by: Guillaume W. Bres +--- + lib/alg-gost3411-2012-core.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/alg-gost3411-2012-core.c b/lib/alg-gost3411-2012-core.c +index 13bb493..af3a36e 100644 +--- a/lib/alg-gost3411-2012-core.c ++++ b/lib/alg-gost3411-2012-core.c +@@ -92,7 +92,7 @@ add512(const uint512_u *x, const uint512_u *y, uint512_u *r) + for (i = 0; i < 64; i++) + { + buf = xp[i] + yp[i] + (buf >> 8); +- rp[i] = (unsigned char) buf & 0xFF; ++ rp[i] = (unsigned char) (buf & 0xFF); + } + #endif + } +-- +2.20.1 +