(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/data-stack.c) |
| |
| 490 | | | void data_stack_init(void) |
| 491 | | | { |
| 492 | | | #ifdef DEBUG |
| 493 | | | clean_after_pop = TRUE; |
| 494 | | | #endif |
| 495 | | | if (data_stack_frame == 0) { |
| 496 | | | data_stack_frame = 1; |
| 497 | | | |
| 498 | | | outofmem_area.block.size = outofmem_area.block.left = |
| 499 | | | sizeof(outofmem_area) - sizeof(outofmem_area.block); |
| 500 | | | |
| 501 | | | current_block = mem_block_alloc(INITIAL_STACK_SIZE); |
| 502 | | | current_block->left = current_block->size; |
| 503 | | | current_block->next = NULL; |
| 504 | | | |
| 505 | | | current_frame_block = NULL; |
| 506 | | | unused_frame_blocks = NULL; |
| 507 | | | frame_pos = BLOCK_FRAME_COUNT-1; |
| 508 | | | |
| 509 | | | last_buffer_block = NULL; |
| 510 | | | last_buffer_size = 0; |
| 511 | | | } |
| 512 | | | |
| 513 | | | t_push(); |
Ignored Return Value
The return value of t_push() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- The return value of t_push() is checked 99% of the time in this project. CodeSonar is configured to enforce Ignored Return Value checks for any function whose return value is checked at least 96% of the time, unless the function is used fewer than 20 times. (To modify these thresholds, use configuration file parameters RETURN_CHECKER_SAMPLE_SIZE and RETURN_CHECKER_RATIO. To exempt t_push() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 514 | | | } |
| |