Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at log.c:104

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

log_read

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/log.c)expand/collapse
Show more  
 166  static int log_read(struct log_io *log_io)
 167  {
 168          const unsigned char *data;
 169          const char *line;
 170          size_t size;
 171          int ret;
 172   
 173[+]         if (!log_write_pending(log_io))
 174                  return 0;
 175   
 176[+]         ret = i_stream_read(log_io->stream);
 177          if (ret < 0) {
 178                  if (ret == -1) {
 179                          /* closed */
 180                          log_unref(log_io);
 181                          return -1;
 182                  }
 183   
 184                  /* buffer full. treat it as one line */
 185                  data = i_stream_get_data(log_io->stream, &size);
 186[+]                 line = t_strndup(data, size);
 187                  i_stream_skip(log_io->stream, size);
 188   
 189[+]                 if (!log_it(log_io, line, TRUE))
expand/collapse

log_it

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/log.c)expand/collapse
Show more  
 97  static int log_it(struct log_io *log_io, const char *line, bool continues)
 98  {
 99          struct child_process *process;
 100          const char *prefix;
 101          enum log_type log_type;
 102   
 103          if (log_io->next_log_type == '\0') {
 104                  if (line[0] == 1 && line[1] != '\0') {
Show more  
Show more  




Change Warning 11741.24826 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: