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/dict/main.c)expand/collapse
Show more  
 63  static void main_init(void)
 64  {
 65          const char *version, *path;
 66          int fd;
 67   
 68          version = getenv("DOVECOT_VERSION");
 69          if (version != NULL && strcmp(version, PACKAGE_VERSION) != 0) {
 70                  i_fatal("Dovecot version mismatch: "
 71                          "Master is v%s, dict is v"PACKAGE_VERSION" "
 72                          "(if you don't care, set version_ignore=yes)", version);
 73          }
 74   
 75          lib_signals_init();
 76          lib_signals_set_handler(SIGINT, TRUE, sig_die, NULL);
 77          lib_signals_set_handler(SIGTERM, TRUE, sig_die, NULL);
 78          lib_signals_ignore(SIGPIPE, TRUE);
 79          lib_signals_ignore(SIGALRM, FALSE);
 80   
 81          /* If master dies, the log fd gets closed and we'll quit */
 82          log_io = io_add(STDERR_FILENO, IO_ERROR, log_error_callback, NULL);
 83   
 84          modules = module_dir_load(DICT_MODULE_DIR, NULL, TRUE, version);
 85          module_dir_init(modules);
 86   
 87          /* Register only after loading modules. They may contain SQL drivers,
 88             which we'll need to register. */
 89          dict_drivers_register_all();
 90   
 91          path = getenv("DICT_LISTEN_FROM_FD");
 92          fd = path == NULL ? -1 : DICT_MASTER_LISTENER_FD;
 93          if (path == NULL) {
 94                  path = t_strconcat(getenv("BASE_DIR"),
 95[+]                                    DEFAULT_DICT_SERVER_SOCKET_FNAME, NULL);
 96          }
 97   
 98[+]         dict_server = dict_server_init(path, fd);
expand/collapse

dict_server_init

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/dict/dict-server.c)expand/collapse
Show more  
 541  struct dict_server *dict_server_init(const char *path, int fd)
 542  {
 543          struct dict_server *server;
 544   
 545          server = i_new(struct dict_server, 1);
 546[+]         server->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 11806.24898 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: