Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util/ccnl-common.c: if (key && keylen > 0) { struct key_s *k = (struct key_s ) calloc(1, sizeof(struct key_s));
the calloc() only allocates the size for a pointer, not for the entire struct, causing writes to unallocated memory
The text was updated successfully, but these errors were encountered:
fixed in ccnlv2-master
Sorry, something went wrong.
No branches or pull requests
util/ccnl-common.c:
if (key && keylen > 0) {
struct key_s *k = (struct key_s ) calloc(1, sizeof(struct
key_s));
the calloc() only allocates the size for a pointer, not for the entire
struct, causing writes to unallocated memory
The text was updated successfully, but these errors were encountered: