[Lldb-commits] [PATCH] [compiler-rt] ASan debugging API for report info extraction and locating addresses

Alexey Samsonov vonosmas at gmail.com
Fri Sep 12 18:14:26 PDT 2014


>>! In D4527#31, @kubabrecka wrote:
>> Getting closer.
> Thanks for the patience :)
> 
>> Why not internal_strncpy(descr->name, vars[i].name_pos, Min(descr->name_size - 1, vars[i].name_len)) ?
> Because that would not write \0 after the string (we're copying just a part of the string pointed to by vars[i].name_pos). So I would have to memset the whole buffer to zero before. Should I do that, instead of the strncat? (The strncat is also used in asan_report.cc:436).

Right, let's keep strncat here then.

http://reviews.llvm.org/D4527






More information about the lldb-commits mailing list