From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 411BCA04BB for ; Tue, 6 Oct 2020 09:42:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 289F21B3DF; Tue, 6 Oct 2020 09:42:10 +0200 (CEST) Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id 6BF1B1E35; Tue, 6 Oct 2020 09:42:01 +0200 (CEST) Received: from glumotte.dev.6wind.com. (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id 3B52846B235; Tue, 6 Oct 2020 09:42:00 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org Cc: Marko Kovacevic , Akhil Goyal , Fan Zhang , Arek Kusztal , stable@dpdk.org Date: Tue, 6 Oct 2020 09:41:42 +0200 Message-Id: <20201006074143.31691-3-olivier.matz@6wind.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201006074143.31691-1-olivier.matz@6wind.com> References: <20201006074143.31691-1-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 2/3] examples/fips_validation: ignore \r in input files X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Some test vectors contain '\r' before '\n' (see link). Ignore them. Link: https://www.openssl.org/docs/fips/testvectors-linux-2007-10-10.tar.gz Fixes: 3d0fad56b74a ("examples/fips_validation: add crypto FIPS application") Cc: stable@dpdk.org Signed-off-by: Olivier Matz --- examples/fips_validation/fips_validation.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c index 13f763c9aa..858f581ba3 100644 --- a/examples/fips_validation/fips_validation.c +++ b/examples/fips_validation/fips_validation.c @@ -33,6 +33,8 @@ get_file_line(void) if (loc >= MAX_LINE_CHAR - 1) return -ENOMEM; + if (c == '\r') + continue; if (c == '\n') break; line[loc++] = c; -- 2.25.1