Fix: Stack smashing
This commit is contained in:
parent
387e7aad34
commit
f7e2dfe133
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue