Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at utc-offset.c:11

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

search_arg_match_cached

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-search.c)expand/collapse
Show more  
 210  static int search_arg_match_cached(struct index_search_context *ctx,
 211                                     struct mail_search_arg *arg)
 212  {
 213          const char *str;
 214          struct tm *tm;
 215          uoff_t virtual_size;
 216          time_t date;
 217          int timezone_offset;
 218   
 219          switch (arg->type) {
 220          /* internal dates */
 221          case SEARCH_BEFORE:
 222          case SEARCH_ON:
 223          case SEARCH_SINCE:
 224[+]                 if (mail_get_received_date(ctx->mail, &date) < 0)
 225                          return -1;
 226   
 227                  if ((arg->value.search_flags &
 228                       MAIL_SEARCH_ARG_FLAG_USE_TZ) == 0) {
 229                          tm = localtime(&date);
 230[+]                         date += utc_offset(tm, date)*60;
expand/collapse

utc_offset

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/utc-offset.c)expand/collapse
Show more  
 8  int utc_offset(struct tm *tm, time_t t ATTR_UNUSED)
 9  {
 10  #ifdef HAVE_TM_GMTOFF 
 11          return (int) (tm->tm_gmtoff/60);
Show more  
Show more  




Change Warning 7522.24505 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: