[PATCH] Erase memory before freeing.

Werner Koch wk at gnupg.org
Tue Aug 2 12:02:34 CEST 2016


On Tue,  2 Aug 2016 09:51, justus at g10code.com said:

> struct chunk {
> size_t size;
> char data[0];
> };

That is not portable.  You need to use 

  struct chunk {
  size_t size;
  char data[1];
  };



Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
 /* Join us at OpenPGP.conf  <https://openpgp-conf.org> */




More information about the Gnupg-devel mailing list