Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at strfuncs.c:304

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

auth_process_group_create

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/auth-process.c)expand/collapse
Show more  
 697  static void auth_process_group_create(struct auth_settings *auth_set)
 698  {
 699          struct auth_process_group *group;
 700          const char *path;
 701   
 702          group = i_new(struct auth_process_group, 1);
 703          group->set = auth_set;
 704   
 705          group->next = process_groups;
 706          process_groups = group;
 707   
 708          if (auth_set->sockets != NULL &&
 709              strcmp(auth_set->sockets->type, "connect") == 0)
 710                  return;
 711   
 712          path = t_strconcat(auth_set->parent->defaults->, "/",
 713[+]                            auth_set->name, NULL);
 714          group->listen_fd = unix_socket_create(path, 0660, master_uid,
 715[+]                                               auth_set->parent->, 128);
expand/collapse

unix_socket_create

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/unix-socket-create.c)expand/collapse
Show more  
 10  int unix_socket_create(const char *path, int mode,
 11                         uid_t uid, gid_t gid, int backlog)
 12  {
 13          mode_t old_umask;
 14          int fd;
 15   
 16          old_umask = umask(0777 ^ mode);
 17[+]         fd = net_listen_unix_unlink_stale(path, backlog);
expand/collapse

net_listen_unix_unlink_stale

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/network.c)expand/collapse
Show more  
 398  int net_listen_unix_unlink_stale(const char *path, int backlog)
 399  {
 400          unsigned int i = 0;
 401          int fd;
 402   
 403[+]         while ((fd = net_listen_unix(path, backlog)) == -1) {
expand/collapse

net_listen_unix

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/network.c)expand/collapse
Show more  
 358  int net_listen_unix(const char *path, int backlog)
 359  {
 360          union {
 361                  struct sockaddr sa;
 362                  struct sockaddr_un un;
 363          } sa;
 364          int fd;
 365   
 366          memset(&sa, 0, sizeof(sa));
 367          sa.un.sun_family = AF_UNIX;
 368[+]         if (i_strocpy(sa.un.sun_path, path, sizeof(sa.un.sun_path)) < 0) {
expand/collapse

i_strocpy

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/strfuncs.c)expand/collapse
Show more  
 299  int i_strocpy(char *dest, const char *src, size_t dstsize)
 300  {
 301          if (dstsize == 0)
 302                  return -1;
 303   
 304          while (*src != '\0' && dstsize > 1) {
Show more  
Show more  
Show more  
Show more  
Show more  




Change Warning 7769.24650 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: