Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at smtp-client.c:51

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

smtp_client_run_sendmail

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/deliver/smtp-client.c)expand/collapse
Show more  
 28  smtp_client_run_sendmail(const char *destination,
 29                           const char *return_path, int fd)
 30  {
 31          const char *argv[7], *sendmail_path;
 32   
 33          /* deliver_set's contents may point to environment variables.
 34             deliver_env_clean() cleans them up, so they have to be copied. */
 35[+]         sendmail_path = t_strdup(deliver_set->sendmail_path);
 36   
 37          argv[0] = sendmail_path;
 38          argv[1] = "-i"; /* ignore dots */
 39          argv[2] = "-f";
 40          argv[3] = return_path != NULL && *return_path != '\0' ?
 41                  return_path : "<>";
 42          argv[4] = "--";
 43          argv[5] = destination;
 44          argv[6] = NULL;
 45   
 46          if (dup2(fd, STDIN_FILENO) < 0)
 47                  i_fatal("dup2() failed: %m");
 48   
 49          deliver_env_clean(TRUE);
 50   
 51          (void)execv(sendmail_path, (void *)argv);
Show more  




Change Warning 8018.24710 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: