Integer Overflow of Allocation Size at index-sort-string.c:271 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
index_sort_zeroes (/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-sort-string.c)![]() | |||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||
259 | static void index_sort_zeroes(struct sort_string_context *ctx) | ||||||||||||||||||||||||||||||||||||||
260 | { | ||||||||||||||||||||||||||||||||||||||
261 | struct mail *mail = ctx->program->temp_mail; | ||||||||||||||||||||||||||||||||||||||
262 | enum mail_sort_type sort_type = ctx->program->sort_program[0]; | ||||||||||||||||||||||||||||||||||||||
263 | string_t *str; | ||||||||||||||||||||||||||||||||||||||
264 | pool_t pool; | ||||||||||||||||||||||||||||||||||||||
265 | struct mail_sort_node *nodes; | ||||||||||||||||||||||||||||||||||||||
266 | unsigned int i, count; | ||||||||||||||||||||||||||||||||||||||
267 | |||||||||||||||||||||||||||||||||||||||
268 | /* first get all the ' sort strings. although this takes more | ||||||||||||||||||||||||||||||||||||||
269 | memory, it makes error handling easier and probably also helps | ||||||||||||||||||||||||||||||||||||||
270 | CPU caching. */ | ||||||||||||||||||||||||||||||||||||||
271 | [+] | ctx->sort_strings = i_new(const char *, ctx->last_seq + 1);
| |||||||||||||||||||||||||||||||||||||
![]() |
| ||||||||||||||||||||||||||||||||||||||
![]() |