Fix: Stack smashing

This commit is contained in:
Dorian Zedler 2022-06-29 21:45:45 +02:00
parent 387e7aad34
commit f7e2dfe133
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -79,9 +79,11 @@ int main(int argc, char** argv) {
md2_hash(len, data, out); md2_hash(len, data, out);
printf("Hash: "); printf("Hash: ");
char hash[16]; char hash[32];
encodeHash(out, hash); encodeHash(out, hash);
printf("%s\n", hash); printf("%s\n", hash);
free(data);
return 0; return 0;
} }