lavabit / libdime

The DIME resolver library and command line utilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrong sizeof argument in dmsg_chunk_encrypt

rillig opened this issue · comments

_secure_wipe(
  (unsigned char *)keyslot,
  sizeof(keyslot));

Since keyslot is a pointer, the second argument should be *keyslot.

Additionally, since the first parameter of the _secure_wipe function is of type void *, no type cast is necessary at all. (Unless this code is supposed to be compiled using a C++ compiler.)