Added slightly better memory management after using meson […] -Db_sanitize=address.

This commit is contained in:
Heiko Reese
2021-09-12 21:47:57 +02:00
parent 643f1a6719
commit 15de3a6204
4 changed files with 11 additions and 14 deletions

View File

@ -7,9 +7,6 @@
#include <sodium.h>
#include "common.h"
//#define MIN_KEY_SIZE (crypto_box_SECRETKEYBYTES < crypto_box_PUBLICKEYBYTES ? crypto_box_SECRETKEYBYTES : crypto_box_PUBLICKEYBYTES)
//#define MAX_KEY_SIZE (crypto_box_SECRETKEYBYTES > crypto_box_PUBLICKEYBYTES ? crypto_box_SECRETKEYBYTES : crypto_box_PUBLICKEYBYTES)
char *read_first_line(const char *filename) {
FILE *stream;
char *cipherstring;