[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200928182438.GA11739@embeddedor>
Date: Mon, 28 Sep 2020 13:24:38 -0500
From: "Gustavo A. R. Silva" <gustavoars@...nel.org>
To: Tianjia Zhang <tianjia.zhang@...ux.alibaba.com>,
Xufeng Zhang <yunbo.xufeng@...ux.alibaba.com>,
Herbert Xu <herbert@...dor.apana.org.au>
Cc: linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <gustavoars@...nel.org>
Subject: Reporting bug in mpi_ec_mul_point()
Hi all,
I'm reporting the following bug detected by Coverity:
The _scalar_copied_ variable is set to 0 at
lib/mpi/ec.c:1255:
1255 int scalar_copied = 0;
and it is never updated before reaching the code below:
lib/mpi/ec.c:1317
1317 if (scalar_copied)
1318 mpi_free(scalar);
This code was introduced by commit d58bb7e55a8a ("lib/mpi: Introduce ec
implementation to MPI library")
Any ideas on what's the right solution for this?
Thanks
--
Gustavo
Powered by blists - more mailing lists