Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at imap-date.c:171

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

imap_to_datetime_tz

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-imap/imap-date.c)expand/collapse
Show more  
 222  const char *imap_to_datetime_tz(time_t timestamp, int timezone_offset)
 223  {
 224          const struct tm *tm;
 225          time_t adjusted = timestamp + timezone_offset*60;
 226   
 227          tm = gmtime(&adjusted);
 228[+]         return imap_to_datetime_tm(tm, timezone_offset);
expand/collapse

imap_to_datetime_tm

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-imap/imap-date.c)expand/collapse
Show more  
 161  static const char *
 162  imap_to_datetime_tm(const struct tm *tm, int timezone_offset)
 163  {
 164          char *buf;
 165          int year;
 166   
 167          /* @UNSAFE: but faster than t_strdup_printf() call.. */
 168          buf = t_malloc(27);
 169   
 170          /* dd-mon- */
 171          buf[0] = (tm->tm_mday / 10) + '0';
Show more  
Show more  




Change Warning 7175.24620 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: