Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at strfuncs.c:412

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

client_process_exec

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/child-process.c)expand/collapse
Show more  
 69  void client_process_exec(const char *cmd, const char *title)
 70  {
 71          const char **argv;
 72   
 73          /* very simple argument splitting. */
 74          if (*title == '\0')
 75                  argv = t_strsplit(cmd, " ");
 76          else 
 77[+][+]                 argv = t_strsplit(t_strconcat(cmd, " ", title, NULL), " ");
expand/collapse

t_strsplit

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/strfuncs.c)expand/collapse
Show more  
 456  const char **t_strsplit(const char *data, const char *separators)
 457  {
 458          return (const char **)split_str(unsafe_data_stack_pool, data,
 459[+]                                         separators, FALSE);
expand/collapse

split_str

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/strfuncs.c)expand/collapse
Show more  
 398  static char **
 399  split_str(pool_t pool, const char *data, const char *separators, int spaces)
 400  {
 401          char **array;
 402          char *str;
 403          unsigned int count, alloc_count, new_alloc_count;
 404   
 405          i_assert(*separators != '\0');
 406   
 407          if (spaces) {
 408                  /* skip leading separators */
 409                  while (*data != '\0' && strchr(separators, *data) != NULL)
 410                          data++;
 411          }
 412          if (*data == '\0')
Show more  
Show more  
Show more  




Change Warning 7736.24640 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: