Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at imem.c:25

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

main_init

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/main.c)expand/collapse
Show more  
 240  static void main_init(bool nodaemon)
 241  {
 242          struct auth_master_listener *listener;
 243   
 244          process_start_time = ioloop_time;
 245   
 246          lib_signals_init();
 247          lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
 248          lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
 249          lib_signals_ignore(SIGPIPE, TRUE);
 250          lib_signals_ignore(SIGALRM, FALSE);
 251   
 252          /* If auth caches aren't used, just ignore these signals */
 253          lib_signals_ignore(SIGHUP, TRUE);
 254          lib_signals_ignore(SIGUSR2, TRUE);
 255   
 256          child_wait_init();
 257          mech_init();
 258          password_schemes_init();
 259          auth_init(auth);
 260          auth_request_handler_init();
 261   
 262          if (worker) {
 263                  worker_client =
 264                          auth_worker_client_create(auth, WORKER_SERVER_FD);
 265                  return;
 266          }
 267   
 268          if (getenv("DOVECOT_MASTER") == NULL) {
 269                  /* starting standalone */
 270                  if (!nodaemon) {
 271                          switch (fork()) {
 272                          case -1:
 273                                  i_fatal("fork() failed: %m");
 274                          case 0:
 275                                  break;
 276                          default:
 277                                  exit(0);
 278                          }
 279   
 280                          if (setsid() < 0)
 281                                  i_fatal("setsid() failed: %m");
 282   
 283                          if (chdir("/") < 0)
 284                                  i_fatal("chdir(/) failed: %m");
 285                  }
 286          } else {
 287                  listener = auth_master_listener_create(auth);
 288                  (void)auth_master_connection_create(listener, MASTER_SOCKET_FD);
 289                  auth_master_listener_add(listener, CLIENT_LISTEN_FD,
 290[+]                                          NULL, LISTENER_CLIENT);
expand/collapse

auth_master_listener_add

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/auth-master-listener.c)expand/collapse
Show more  
 115  void auth_master_listener_add(struct auth_master_listener *listener,
 116                                int fd, const char *path,
 117                                enum listener_type type)
 118  {
 119          struct auth_master_listener_socket *s;
 120   
 121          s = i_new(struct auth_master_listener_socket, 1);
 122          s->listener = listener;
 123          s->fd = fd;
 124[+]         s->path = i_strdup(path);
expand/collapse

i_strdup

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 23  char *i_strdup(const char *str)
 24  {
 25      char *rv = strdup( str );
Show more  
Show more  
Show more  




Change Warning 11985.25803 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: