grub2/grub-core/lib/libgcrypt
Darren Kenny e8814c8111 libgcrypt/mpi: Fix possible unintended sign extension
The array of unsigned char gets promoted to a signed 32-bit int before
it is finally promoted to a size_t. There is the possibility that this
may result in the signed-bit being set for the intermediate signed
32-bit int. We should ensure that the promotion is to the correct type
before we bitwise-OR the values.

Fixes: CID 96697

Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2021-03-02 15:54:16 +01:00
..
cipher calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
mpi libgcrypt/mpi: Fix possible unintended sign extension 2021-03-02 15:54:16 +01:00
src Import libgcrypt 1.5.3. 2013-11-07 06:35:50 +01:00