Actions
Bug #4217
closedNLSR heap buffer overflow error
Start date:
08/02/2017
Due date:
% Done:
100%
Estimated time:
Description
Running NLSR with address sanitizer crashes it with heap buffer overflow error.
This is due to:
https://github.com/named-data/NLSR/blob/9b71bbc970d94b7c62bf4fe6dedd68a1386f4e5b/src/lsdb.cpp#L1157
And can be fixed by doing this instead:
string dataContent(reinterpret_cast<const char*>(data->getContent().value()), data->getContent().value_size());
Files
Actions