ssh: Fix allocation of pinentry buffer
Werner Koch
wk at gnupg.org
Mon Sep 28 12:41:02 CEST 2015
On Mon, 28 Sep 2015 10:54, gniibe at fsij.org said:
> I changed the pointer calculation using the cast to (char *), but it
> is wrong still, because it doesn't care about alignment of the
> structure. It should be rounded up to the alignment.
Yep. We better do separate mallocs for PI and PI2. Overoptimizing
things is never good.
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-devel
mailing list