Null Pointer Dereference at utc-offset.c:11 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
search_arg_match_cached (/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-search.c)![]() | ||||||||||||||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||||||||||||||
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; | ||||||||||||||||||||||||||||||||||||||||||
![]() |
| |||||||||||||||||||||||||||||||||||||||||||
![]() |