Bug#866964: Fwd: mpi_set_secure leads to heap corruption

2017-07-04 Thread Mark Wooding
NIIBE Yutaka writes: > Thank you for forwarding the bug report. > > Fixed both for master and LIBGCRYPT-1-7-BRANCH. Thanks. > Yes. While the patch is right, I followed the suggestion for less > surprise. Fair enough. > While there is the API, I don't know the real use

Bug#866964: Fwd: mpi_set_secure leads to heap corruption

2017-07-04 Thread Werner Koch
On Tue, 4 Jul 2017 03:05, gni...@fsij.org said: > Yes. While the patch is right, I followed the suggestion for less > surprise. The reason why it was falsely allocated as nlimbs is likely to save on secure memory. Now that we auto-grow the secure memory this is not needed and thus this simple

Bug#866964: Fwd: mpi_set_secure leads to heap corruption

2017-07-03 Thread NIIBE Yutaka
Hello, (Cc-ed to the bug report BTS) Thank you for forwarding the bug report. Fixed both for master and LIBGCRYPT-1-7-BRANCH. master: https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=5feaf1cc8f22c1f8d19a34850d86fe190f1432e2 LIBGCRYPT-1-7-BRANCH: