Re: [PATCH 3/4] ddb: safely copy symbol names into the symtab structure

2014-02-04 Thread Samuel Thibault
Justus Winter, le Tue 04 Feb 2014 11:50:03 +0100, a écrit : > Use strncpy instead of strcpy to copy the name of a symbol into the > symtab structure. Make sure that the string is properly terminated. > > Found using Coverity. > > * ddb/db_sym.c (db_add_symbol_table): Use strncpy instead of strcp

[PATCH 3/4] ddb: safely copy symbol names into the symtab structure

2014-02-04 Thread Justus Winter
Use strncpy instead of strcpy to copy the name of a symbol into the symtab structure. Make sure that the string is properly terminated. Found using Coverity. * ddb/db_sym.c (db_add_symbol_table): Use strncpy instead of strcpy, ensure string termination. --- ddb/db_sym.c | 3 ++- 1 file changed,