Project

General

Profile

Actions

Bug #4217

closed

NLSR heap buffer overflow error

Added by Ashlesh Gawande over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
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

heap-over-flow-error (19.7 KB) heap-over-flow-error Ashlesh Gawande, 08/02/2017 01:06 PM
Actions #1

Updated by Ashlesh Gawande over 6 years ago

  • Status changed from New to Code review
  • Assignee set to Ashlesh Gawande
  • % Done changed from 0 to 100
Actions #2

Updated by Ashlesh Gawande over 6 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF