LDRA Testbed Code Review Report

LDRA Testbed ® Code Review Report

# System : Dovecot-src-lib-index

Overall Result: FAIL

Report Production | Report Configuration | Analysis phases
--- | --- | ---
C/C++ LDRA Testbed Version: 8.3.0 Config. File: C:\Testbed\CCPP_830_Release\C\sate_creport.dat Produced On: Mon Aug 09 2010 at 19:24:43 Penalty File: C:\Testbed\CCPP_830_Release\c\cpen.dat | Report Level: Summary Report Procedures Reported: Fails Only Programming Standards Model: SATE 2010 L1 Plus Line Numbers refer to: Original Source File Violation Details: Violations Only Reporting Scope: Full analysis scope | Static: Yes Complexity: Yes Static Data Flow: Yes Information Flow: Yes Cross Reference: Yes

#### Contents

Overall Quality Summary

- Totals of Violations for each Standard
- Table of Procedure Results
- Table of Source Files in System
- Table of Global Basic Information

Report on Program Components

- Quality Results Global Program and Selected Procedures

## Overall Quality Summary

#### Totals for Violated Quality Standards

Number of Violations | LDRA Code | (M) Mandatory Standards | CERT Code
--- | --- | --- | ---
80 | 77 S | Macro replacement list needs parentheses. | CERT PRE02-C
60 | 78 S | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
4 | 480 S | String function params access same variable. | CERT DCL33-C
2 | 483 S | free parameter is not heap item. | CERT MEM34-C
63 | 484 S | Attempt to use already freed object. | CERT MEM31-C
1 | 489 S | Insufficient space for operation. | CERT DCL33-C,FIO43-C
63 | 577 S | Sizeof argument is a pointer. | CERT EXP01-C
118 | 5 D | Procedure contains UR data flow anomalies. | CERT EXP33-C
1265 | 45 D | Pointer not checked for null before use | CERT EXP08-C,EXP34-C
4 | 50 D | Memory not freed after last reference. | CERT MEM00-C
36 | 51 D | Attempt to read from freed memory. | CERT MEM30-C
7 | 57 D | Global not initialised at declaration. | CERT EXP33-C
312 | 69 D | Procedure contains UR data flow anomalies. | CERT EXP33-C
49 | 77 D | Local structure returned in function result |
14 | 86 D | User input not checked before use. | CERT FIO30-C
74 | 1 X | Declaration types do not match across a system. | CERT ARR31-C

Number of Violations | LDRA Code | (C) Checking (Mandatory) Standards | CERT Code
--- | --- | --- | ---
57 | 76 D | Procedure not called in code analysed |

Number of Violations | LDRA Code | (O) Optional Standards | CERT Code
--- | --- | --- | ---
4 | 592 S | Use of filename based functions. | CERT FIO01-C
18 | 80 D | Potentially unused function return value. | CERT FIO04-C

Number of Mandatory Standards checked | 27
Number of Checking Standards checked | 1
Number of Optional Standards checked | 3
Total Standards checked | 31

### OVERALL RESULT: FAIL

Out of 791 program components, 280 (35.40 %) pass ( of which 1 conditionally passes ) and 511 fail ( of which 0 fail only because of insufficient comments )

#### Procedure Results

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | Global Program |
Pass |  | buffer_get_data |  | buffer.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | buffer_get_used_size |  | buffer.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_create_from_buffer_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
FAIL |  | array_create_i |  | array.h analysed in mail-cache-compress.c |  | 1 | - |  | 17 | - |
Pass |  | array_free_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_is_created_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_get_pool_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_clear_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_append_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_append_array_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_insert_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_delete_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_get_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_idx_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_get_modifiable_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
FAIL |  | array_append_space_i |  | array.h analysed in mail-cache-compress.c |  | 1 | - |  | 20 | - |
Pass |  | array_copy |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
Pass |  | array_count_i |  | array.h analysed in mail-cache-compress.c |  | 0 |  | 0 |
FAIL |  | mail_cache_merge_bitmask |  | mail-cache-compress.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_cache_compress_field |  | mail-cache-compress.c |  | 1 | - |  | 1 | - |
FAIL |  | get_next_file_seq |  | mail-cache-compress.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_cache_compress_get_fields |  | mail-cache-compress.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_cache_copy |  | mail-cache-compress.c |  | 1 | - |  | 13 | - |
FAIL |  | mail_cache_compress_has_file_changed |  | mail-cache-compress.c |  | 1 | - |  | 17 | - |
FAIL |  | mail_cache_compress_locked |  | mail-cache-compress.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_cache_compress |  | mail-cache-compress.c |  | 1 | - |  | 15 | - |
Pass |  | mail_cache_need_compress |  | mail-cache-compress.c |  | 0 |  | 0 |
FAIL |  | mail_cache_decision_state_update |  | mail-cache-decisions.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_cache_decision_add |  | mail-cache-decisions.c |  | 1 | - |  | 6 | - |
Pass |  | field_has_fixed_size |  | mail-cache-fields.c |  | 0 |  | 0 |
Pass |  | field_decision_is_valid |  | mail-cache-fields.c |  | 0 |  | 0 |
Pass |  | field_type_verify |  | mail-cache-fields.c |  | 0 |  | 0 |
FAIL |  | mail_cache_register_fields |  | mail-cache-fields.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_cache_register_lookup |  | mail-cache-fields.c |  | 1 | - |  | 18 | - |
FAIL |  | mail_cache_register_get_list |  | mail-cache-fields.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_cache_header_fields_get_offset |  | mail-cache-fields.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_cache_header_fields_read |  | mail-cache-fields.c |  | 1 | - |  | 6 | - |
FAIL |  | copy_to_buf |  | mail-cache-fields.c |  | 1 | - |  | 6 | - |
FAIL |  | copy_to_buf_byte |  | mail-cache-fields.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_cache_header_fields_update_locked |  | mail-cache-fields.c |  | 1 | - |  | 14 | - |
FAIL |  | mail_cache_header_fields_update |  | mail-cache-fields.c |  | 1 | - |  | 19 | - |
FAIL |  | mail_cache_header_fields_get |  | mail-cache-fields.c |  | 1 | - |  | 2 | - |
Pass |  | mail_cache_head r_fields_get_next_offset |  | mail-cache-fields.c |  | 0 |  | 0 |
FAIL |  | mail_cache_get_record |  | mail-cache-lookup.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_cache_lookup_cur_offset |  | mail-cache-lookup.c |  | 1 | - |  | 17 | - |
FAIL |  | mail_cache_lookup_offset |  | mail-cache-lookup.c |  | 1 | - |  | 4 | - |
Pass |  | mail_cache_track_loops |  | mail-cache-lookup.c |  | 0 |  | 0 |
FAIL |  | mail_cache_lookup_iter_init |  | mail-cache-lookup.c |  | 1 | - |  | 9 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | mail_cache_lookup_iter_next_record |  | mail-cache-lookup.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_cache_lookup_iter_next |  | mail-cache-lookup.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_cache_seq |  | mail-cache-lookup.c |  | 1 | - |  | 44 | - |
Pass |  | mail_cache_file_has_field |  | mail-cache-lookup.c |  | 0 |  | 0 |
FAIL |  | mail_cache_field_exists |  | mail-cache-lookup.c |  | 1 | - |  | 4 | - |
Pass |  | mail_cache_field_get_decision |  | mail-cache-lookup.c |  | 0 |  | 0 |
FAIL |  | mail_cache_lookup_bitmask |  | mail-cache-lookup.c |  | 1 | - |  | 15 | - |
FAIL |  | mail_cache_lookup_field |  | mail-cache-lookup.c |  | 1 | - |  | 35 | - |
FAIL |  | header_lines_save |  | mail-cache-lookup.c |  | 1 | - |  | 5 | - |
Pass |  | header_lookup_line_cmp |  | mail-cache-lookup.c |  | 0 |  | 0 |
FAIL |  | mail_cache_lookup_headers_real |  | mail-cache-lookup.c |  | 1 | - |  | 16 | - |
Pass |  | mail_cache_lookup_headers |  | mail-cache-lookup.c |  | 0 |  | 0 |
FAIL |  | mail_cache_handler_deinit |  | mail-cache-sync-update.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_cache_handler_init |  | mail-cache-sync-update.c |  | 1 | - |  | 18 | - |
Pass |  | mail_cache_handler_lock |  | mail-cache-sync-update.c |  | 0 |  | 0 |
Pass |  | get_cache_file_seq |  | mail-cache-sync-update.c |  | 0 |  | 0 |
FAIL |  | mail_cache_expunge_handler |  | mail-cache-sync-update.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_cache_sync_handler |  | mail-cache-sync-update.c |  | 1 | - |  | 5 | - |
Pass |  | mail_cache_sync_lost_handler |  | mail-cache-sync-update.c |  | 0 |  | 0 |
Pass |  | module_get_context_id |  | module-context.h analysed in mail-cache-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_cache_reset |  | mail-cache-transaction.c |  | 1 | - |  | 18 | - |
FAIL |  | mail_index_transaction_cache_commit |  | mail-cache-transaction.c |  | 1 | - |  | 18 | - |
FAIL |  | mail_index_transaction_cache_rollback |  | mail-cache-transaction.c |  | 1 | - |  | 18 | - |
FAIL |  | mail_cache_get_transaction |  | mail-cache-transaction.c |  | 1 | - |  | 8 | - |
Pass |  | mail_cache_transaction_reset |  | mail-cache-transaction.c |  | 0 |  | 0 |
Pass |  | mail_cache_transaction_free |  | mail-cache-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_cache_transaction_compress |  | mail-cache-transaction.c |  | 1 | - |  | 20 | - |
FAIL |  | mail_cache_transaction_open_if_needed |  | mail-cache-transaction.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_cache_transaction_lock |  | mail-cache-transaction.c |  | 1 | - |  | 6 | - |
Pass |  | mail_cache_grow_file |  | mail-cache-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_cache_unlink_hole |  | mail-cache-transaction.c |  | 1 | - |  | 5 | - |
Pass |  | mail_cache_tran action_add_reservation |  | mail-cache-transaction.c |  | 0 |  | 0 |
Pass |  | mail_cache_tran action_partial_commit |  | mail-cache-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_cache_transaction_reserve_more |  | mail-cache-transaction.c |  | 1 | - |  | 4 | - |
Pass |  | mail_cache_free_space |  | mail-cache-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_cache_transaction_free_reservations |  | mail-cache-transaction.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_cache_transaction_free_space |  | mail-cache-transaction.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_cache_transaction_get_space |  | mail-cache-transaction.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_cache_transaction_update_index |  | mail-cache-transaction.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_cache_transaction_flush |  | mail-cache-transaction.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_cache_transaction_switch_seq |  | mail-cache-transaction.c |  | 1 | - |  | 12 | - |
FAIL |  | mail_cache_transaction_commit |  | mail-cache-transaction.c |  | 1 | - |  | 16 | - |
FAIL |  | mail_cache_transaction_rollback |  | mail-cache-transaction.c |  | 1 | - |  | 13 | - |
FAIL |  | mail_cache_header_fields_write |  | mail-cache-transaction.c |  | 1 | - |  | 11 | - |
Pass |  | mail_cache_mark_adding |  | mail-cache-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_cache_header_add_field |  | mail-cache-transaction.c |  | 1 | - |  | 13 | - |
FAIL |  | mail_cache_add |  | mail-cache-transaction.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_cache_field_want_add |  | mail-cache-transaction.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_cache_field_can_add |  | mail-cache-transaction.c |  | 1 | - |  | 7 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
Pass |  | mail_cache_link_unlocked |  | mail-cache-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_cache_link |  | mail-cache-transaction.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_cache_delete_real |  | mail-cache-transaction.c |  | 1 | - |  | 3 | - |
Pass |  | mail_cache_delete |  | mail-cache-transaction.c |  | 0 |  | 0 |
Pass |  | mail_cache_set_syscall_error |  | mail-cache.c |  | 0 |  | 0 |
Pass |  | mail_cache_unlink |  | mail-cache.c |  | 0 |  | 0 |
Pass |  | mail_cache_set_corrupted |  | mail-cache.c |  | 0 |  | 0 |
FAIL |  | mail_cache_file_close |  | mail-cache.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_cache_init_file_cache |  | mail-cache.c |  | 1 | - |  | 6 | - |
Pass |  | mail_cache_need_reopen |  | mail-cache.c |  | 0 |  | 0 |
FAIL |  | mail_cache_reopen |  | mail-cache.c |  | 1 | - |  | 9 | - |
Pass |  | mail_cache_upda e_need_compress |  | mail-cache.c |  | 0 |  | 0 |
Pass |  | mail_cache_verify_header |  | mail-cache.c |  | 0 |  | 0 |
FAIL |  | mail_cache_map |  | mail-cache.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_cache_try_open |  | mail-cache.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_cache_open_and_verify |  | mail-cache.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_cache_alloc |  | mail-cache.c |  | 1 | - |  | 6 | - |
Pass |  | mail_cache_open_or_create |  | mail-cache.c |  | 0 |  | 0 |
FAIL |  | mail_cache_create |  | mail-cache.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_cache_free |  | mail-cache.c |  | 1 | - |  | 33 | - |
Pass |  | mail_cache_lock_file |  | mail-cache.c |  | 0 |  | 0 |
Pass |  | mail_cache_unlock_file |  | mail-cache.c |  | 0 |  | 0 |
FAIL |  | mail_cache_lock_full |  | mail-cache.c |  | 1 | - |  | 20 | - |
Pass |  | mail_cache_lock |  | mail-cache.c |  | 0 |  | 0 |
Pass |  | mail_cache_try_lock |  | mail-cache.c |  | 0 |  | 0 |
FAIL |  | mail_cache_unlock |  | mail-cache.c |  | 1 | - |  | 6 | - |
Pass |  | mail_cache_write |  | mail-cache.c |  | 0 |  | 0 |
FAIL |  | mail_cache_view_open |  | mail-cache.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_cache_view_close |  | mail-cache.c |  | 1 | - |  | 12 | - |
FAIL |  | mail_cache_get_first_new_seq |  | mail-cache.c |  | 1 | - |  | 19 | - |
FAIL |  | mail_index_alloc_cache_add |  | mail-index-alloc-cache.c |  | 1 | - |  | 35 | - |
FAIL |  | mail_index_alloc_cache_list_free |  | mail-index-alloc-cache.c |  | 1 | - |  | 28 | - |
FAIL |  | mail_index_alloc_cache_find |  | mail-index-alloc-cache.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_alloc_cache_get |  | mail-index-alloc-cache.c |  | 1 | - |  | 6 | - |
FAIL |  | destroy_unrefed |  | mail-index-alloc-cache.c |  | 1 | - |  | 6 | - |
Pass |  | index_removal_timeout |  | mail-index-alloc-cache.c |  | 0 |  | 0 |
FAIL |  | mail_index_alloc_cache_unref |  | mail-index-alloc-cache.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_allo _cache_destroy_unrefed |  | mail-index-alloc-cache.c |  | 0 |  | 0 |
FAIL |  | mail_index_alloc_cache_index_opened |  | mail-index-alloc-cache.c |  | 1 | - |  | 6 | - |
Pass |  | dummy_view_close |  | mail-index-dummy-view.c |  | 0 |  | 0 |
Pass |  | dummy_view_get_message_count |  | mail-index-dummy-view.c |  | 0 |  | 0 |
FAIL |  | mail_index_dummy_view_open |  | mail-index-dummy-view.c |  | 1 | - |  | 20 | - |
Pass |  | mail_index_fsck_error |  | mail-index-fsck.c |  | 0 |  | 0 |
FAIL |  | mail_index_fsck_log_pos |  | mail-index-fsck.c |  | 1 | - |  | 3 | - |
Pass |  | mail_index_fsck_header |  | mail-index-fsck.c |  | 0 |  | 0 |
Pass |  | array_has_name |  | mail-index-fsck.c |  | 0 |  | 0 |
FAIL |  | mail_index_fsck_find_keyword_count |  | mail-index-fsck.c |  | 1 | - |  | 2 | - |
Pass |  | keyword_name_is_valid |  | mail-index-fsck.c |  | 0 |  | 0 |
FAIL |  | mail_index_fsck_keywords |  | mail-index-fsck.c |  | 1 | - |  | 8 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | mail_index_fsck_extensions |  | mail-index-fsck.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_index_fsck_records |  | mail-index-fsck.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_fsck_map |  | mail-index-fsck.c |  | 1 | - |  | 15 | - |
FAIL |  | mail_index_fsck |  | mail-index-fsck.c |  | 1 | - |  | 10 | - |
Pass |  | mail_index_fsck_locked |  | mail-index-fsck.c |  | 0 |  | 0 |
Pass |  | mail_index_lock_fd |  | mail-index-lock.c |  | 0 |  | 0 |
Pass |  | mail_index_lock |  | mail-index-lock.c |  | 0 |  | 0 |
Pass |  | mail_index_flush_read_cache |  | mail-index-lock.c |  | 0 |  | 0 |
Pass |  | mail_index_lock_shared |  | mail-index-lock.c |  | 0 |  | 0 |
Pass |  | mail_index_try_lock_exclusive |  | mail-index-lock.c |  | 0 |  | 0 |
Pass |  | mail_index_unlock |  | mail-index-lock.c |  | 0 |  | 0 |
Pass |  | mail_index_is_locked |  | mail-index-lock.c |  | 0 |  | 0 |
FAIL |  | mail_index_map_parse_extensions |  | mail-index-map-hdr.c |  | 1 | - |  | 1 | - |
FAIL |  | mail_index_map_parse_keywords |  | mail-index-map-hdr.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_check_header_compat |  | mail-index-map-hdr.c |  | 1 | - |  | 1 | - |
FAIL |  | mail_index_map_clear_recent_flags |  | mail-index-map-hdr.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_map_check_header |  | mail-index-map-hdr.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_map_copy_hdr |  | mail-index-map-read.c |  | 1 | - |  | 13 | - |
FAIL |  | mail_index_mmap |  | mail-index-map-read.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_read_header |  | mail-index-map-read.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_try_read_map |  | mail-index-map-read.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_read_map |  | mail-index-map-read.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_map_latest_file |  | mail-index-map-read.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_map |  | mail-index-map-read.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_map_init_extbufs |  | mail-index-map.c |  | 1 | - |  | 9 | - |
Pass |  | mail_index_map_lookup_ext |  | mail-index-map.c |  | 0 |  | 0 |
Pass |  | mail_index_map_ext_hdr_offset |  | mail-index-map.c |  | 0 |  | 0 |
FAIL |  | mail_index_map_register_ext |  | mail-index-map.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_map_ext_get_next |  | mail-index-map.c |  | 1 | - |  | 4 | - |
Pass |  | mail_index_map_ xt_hdr_check_record |  | mail-index-map.c |  | 0 |  | 0 |
Pass |  | mail_index_map_ext_hdr_check |  | mail-index-map.c |  | 0 |  | 0 |
FAIL |  | mail_index_header_init |  | mail-index-map.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_map_alloc |  | mail-index-map.c |  | 1 | - |  | 17 | - |
FAIL |  | mail_index_record_map_free |  | mail-index-map.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_record_map_unlink |  | mail-index-map.c |  | 0 |  | 0 |
FAIL |  | mail_index_unmap |  | mail-index-map.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_map_copy_records |  | mail-index-map.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_map_copy_header |  | mail-index-map.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_record_map_alloc |  | mail-index-map.c |  | 1 | - |  | 45 | - |
FAIL |  | mail_index_map_clone |  | mail-index-map.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_record_map_move_to_private |  | mail-index-map.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_map_move_to_memory |  | mail-index-map.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_map_get_ext_idx |  | mail-index-map.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_bsearch_uid |  | mail-index-map.c |  | 1 | - |  | 3 | - |
Pass |  | mail_index_map_ ookup_seq_range |  | mail-index-map.c |  | 0 |  | 0 |
Pass |  | mail_index_modseq_init |  | mail-index-modseq.c |  | 0 |  | 0 |
Pass |  | mail_index_modseq_get_head |  | mail-index-modseq.c |  | 0 |  | 0 |
FAIL |  | mail_index_modseq_enable |  | mail-index-modseq.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_index_map_get_modseq_header |  | mail-index-modseq.c |  | 1 | - |  | 15 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
Pass |  | mail_index_map_ odseq_get_highest |  | mail-index-modseq.c |  | 0 |  | 0 |
Pass |  | mail_index_modseq_get_highest |  | mail-index-modseq.c |  | 0 |  | 0 |
FAIL |  | mail_index_map_modseq |  | mail-index-modseq.c |  | 1 | - |  | 14 | - |
FAIL |  | mail_index_modseq_lookup |  | mail-index-modseq.c |  | 1 | - |  | 12 | - |
FAIL |  | mail_index_modseq_set |  | mail-index-modseq.c |  | 1 | - |  | 13 | - |
FAIL |  | modseq_idx_lookup |  | mail-index-modseq.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_modseq_lookup_flags |  | mail-index-modseq.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_modseq_lookup_keywords |  | mail-index-modseq.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_modseq_update |  | mail-index-modseq.c |  | 1 | - |  | 11 | - |
Pass |  | mail_index_mods q_update_to_highest |  | mail-index-modseq.c |  | 0 |  | 0 |
FAIL |  | mail_index_modseq_update_old_rec |  | mail-index-modseq.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_modseq_sync_init |  | mail-index-modseq.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_modseq_sync_begin |  | mail-index-modseq.c |  | 1 | - |  | 15 | - |
FAIL |  | mail_index_modseq_update_header |  | mail-index-modseq.c |  | 1 | - |  | 12 | - |
Pass |  | mail_index_modseq_sync_end |  | mail-index-modseq.c |  | 0 |  | 0 |
Pass |  | mail_index_mods q_sync_map_replaced |  | mail-index-modseq.c |  | 0 |  | 0 |
Pass |  | mail_index_modseq_hdr_update |  | mail-index-modseq.c |  | 0 |  | 0 |
Pass |  | mail_index_modseq_append |  | mail-index-modseq.c |  | 0 |  | 0 |
Pass |  | mail_index_modseq_expunge |  | mail-index-modseq.c |  | 0 |  | 0 |
Pass |  | modseqs_update |  | mail-index-modseq.c |  | 0 |  | 0 |
FAIL |  | modseqs_idx_update |  | mail-index-modseq.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_modseq_update_flags |  | mail-index-modseq.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_modseq_update_keyword |  | mail-index-modseq.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_modseq_reset_keywords |  | mail-index-modseq.c |  | 1 | - |  | 4 | - |
Pass |  | mail_index_mods q_update_highest |  | mail-index-modseq.c |  | 0 |  | 0 |
FAIL |  | mail_index_map_modseq_clone |  | mail-index-modseq.c |  | 1 | - |  | 20 | - |
Pass |  | mail_index_map_modseq_free |  | mail-index-modseq.c |  | 0 |  | 0 |
FAIL |  | mail_index_modseq_get_next_log_offset |  | mail-index-modseq.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_strmap_init |  | mail-index-strmap.c |  | 1 | - |  | 10 | - |
Pass |  | mail_index_strm p_set_syscall_error |  | mail-index-strmap.c |  | 0 |  | 0 |
Pass |  | mail_index_strmap_close |  | mail-index-strmap.c |  | 0 |  | 0 |
FAIL |  | mail_index_strmap_deinit |  | mail-index-strmap.c |  | 1 | - |  | 36 | - |
Pass |  | mail_index_strmap_hash_key |  | mail-index-strmap.c |  | 0 |  | 0 |
FAIL |  | mail_index_strmap_hash_cmp |  | mail-index-strmap.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_strmap_view_open |  | mail-index-strmap.c |  | 1 | - |  | 17 | - |
FAIL |  | mail_index_strmap_view_close |  | mail-index-strmap.c |  | 1 | - |  | 14 | - |
Pass |  | mail_index_strm p_view_get_highest_idx |  | mail-index-strmap.c |  | 0 |  | 0 |
Pass |  | mail_index_strmap_view_reset |  | mail-index-strmap.c |  | 0 |  | 0 |
FAIL |  | mail_index_strmap_view_set_corrupted |  | mail-index-strmap.c |  | 1 | - |  | 30 | - |
FAIL |  | mail_index_strmap_open |  | mail-index-strmap.c |  | 1 | - |  | 14 | - |
Pass |  | mail_index_strmap_need_reopen |  | mail-index-strmap.c |  | 0 |  | 0 |
FAIL |  | mail_index_strmap_refresh |  | mail-index-strmap.c |  | 1 | - |  | 11 | - |
FAIL |  | mail_index_strmap_read_packed |  | mail-index-strmap.c |  | 1 | - |  | 23 | - |
FAIL |  | mail_index_strmap_uid_exists |  | mail-index-strmap.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_strmap_read_rec_first |  | mail-index-strmap.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_strmap_read_rec_next |  | mail-index-strmap.c |  | 1 | - |  | 15 | - |
FAIL |  | strmap_read_block_init |  | mail-index-strmap.c |  | 1 | - |  | 18 | - |
FAIL |  | strmap_read_block_next |  | mail-index-strmap.c |  | 1 | - |  | 5 | - |
FAIL |  | strmap_read_block_deinit |  | mail-index-strmap.c |  | 1 | - |  | 8 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | strmap_view_sync_handle_conflict |  | mail-index-strmap.c |  | 1 | - |  | 10 | - |
FAIL |  | strmap_view_sync_block_check_conflicts |  | mail-index-strmap.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_strmap_view_sync_block |  | mail-index-strmap.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_strmap_view_sync_init |  | mail-index-strmap.c |  | 1 | - |  | 35 | - |
Pass |  | crc32_str_nonzero |  | mail-index-strmap.c |  | 0 |  | 0 |
FAIL |  | mail_index_strmap_view_sync_add |  | mail-index-strmap.c |  | 1 | - |  | 11 | - |
FAIL |  | mail_index_strmap_view_sync_add_unique |  | mail-index-strmap.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_strm p_zero_terminate |  | mail-index-strmap.c |  | 0 |  | 0 |
FAIL |  | mail_index_strmap_view_renumber |  | mail-index-strmap.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_strmap_write_block |  | mail-index-strmap.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_strmap_recreate_write |  | mail-index-strmap.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_index_strmap_recreate |  | mail-index-strmap.c |  | 1 | - |  | 20 | - |
Pass |  | mail_index_strmap_lock |  | mail-index-strmap.c |  | 0 |  | 0 |
Pass |  | mail_index_strmap_unlock |  | mail-index-strmap.c |  | 0 |  | 0 |
Pass |  | strmap_rec_cmp |  | mail-index-strmap.c |  | 0 |  | 0 |
FAIL |  | mail_index_strmap_write_append |  | mail-index-strmap.c |  | 1 | - |  | 18 | - |
FAIL |  | mail_index_strmap_write |  | mail-index-strmap.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_strmap_view_sync_commit |  | mail-index-strmap.c |  | 1 | - |  | 26 | - |
FAIL |  | mail_index_strmap_view_sync_rollback |  | mail-index-strmap.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_sync_init_expunge_handlers |  | mail-index-sync-ext.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_sync deinit_expunge_handlers |  | mail-index-sync-ext.c |  | 0 |  | 0 |
Pass |  | mail_index_sync_init_handlers |  | mail-index-sync-ext.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_deinit_handlers |  | mail-index-sync-ext.c |  | 1 | - |  | 2 | - |
FAIL |  | get_ext_header |  | mail-index-sync-ext.c |  | 1 | - |  | 13 | - |
Pass |  | mail_index_ext_align_cmp |  | mail-index-sync-ext.c |  | 0 |  | 0 |
FAIL |  | sync_ext_reorder |  | mail-index-sync-ext.c |  | 1 | - |  | 4 | - |
FAIL |  | sync_ext_resize |  | mail-index-sync-ext.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_sync_ext_unknown_complain |  | mail-index-sync-ext.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_sync_ext_init_new |  | mail-index-sync-ext.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_sync_ext_init |  | mail-index-sync-ext.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_sync_ext_intro |  | mail-index-sync-ext.c |  | 1 | - |  | 3 | - |
Pass |  | mail_index_sync_ext_clear |  | mail-index-sync-ext.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_ext_reset |  | mail-index-sync-ext.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_sync_ext_hdr_update |  | mail-index-sync-ext.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_sync_ext_rec_update |  | mail-index-sync-ext.c |  | 1 | - |  | 11 | - |
FAIL |  | mail_index_sync_ext_atomic_inc |  | mail-index-sync-ext.c |  | 1 | - |  | 4 | - |
FAIL |  | keyword_lookup |  | mail-index-sync-keywords.c |  | 1 | - |  | 6 | - |
FAIL |  | keywords_get_header_buf |  | mail-index-sync-keywords.c |  | 1 | - |  | 11 | - |
FAIL |  | keywords_ext_register |  | mail-index-sync-keywords.c |  | 1 | - |  | 14 | - |
FAIL |  | keywords_header_add |  | mail-index-sync-keywords.c |  | 1 | - |  | 14 | - |
FAIL |  | keywords_update_records |  | mail-index-sync-keywords.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_index_sync_keywords |  | mail-index-sync-keywords.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_sync_keywords_reset |  | mail-index-sync-keywords.c |  | 1 | - |  | 11 | - |
Pass |  | mail_index_sync update_log_offset |  | mail-index-sync-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_replace_map |  | mail-index-sync-update.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_sync_move_to_private_memory |  | mail-index-sync-update.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_sync_get_atomic_map |  | mail-index-sync-update.c |  | 1 | - |  | 10 | - |
Pass |  | mail_index_head r_update_counts |  | mail-index-sync-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_header_update_counts_all |  | mail-index-sync-update.c |  | 1 | - |  | 4 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
Pass |  | mail_index_sync header_update_counts |  | mail-index-sync-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_header_update_lowwaters |  | mail-index-sync-update.c |  | 1 | - |  | 3 | - |
FAIL |  | sync_expunge_call_handlers |  | mail-index-sync-update.c |  | 1 | - |  | 2 | - |
FAIL |  | sync_expunge |  | mail-index-sync-update.c |  | 1 | - |  | 14 | - |
Pass |  | sync_append_record |  | mail-index-sync-update.c |  | 0 |  | 0 |
Pass |  | sync_update_ignored_change |  | mail-index-sync-update.c |  | 0 |  | 0 |
FAIL |  | sync_uid_update |  | mail-index-sync-update.c |  | 1 | - |  | 13 | - |
FAIL |  | sync_modseq_update |  | mail-index-sync-update.c |  | 1 | - |  | 5 | - |
Pass |  | mail_index_sync write_seq_update |  | mail-index-sync-update.c |  | 0 |  | 0 |
FAIL |  | sync_append |  | mail-index-sync-update.c |  | 1 | - |  | 4 | - |
FAIL |  | sync_flag_update |  | mail-index-sync-update.c |  | 1 | - |  | 8 | - |
FAIL |  | sync_header_update |  | mail-index-sync-update.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_sync_record |  | mail-index-sync-update.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_sync_map_init |  | mail-index-sync-update.c |  | 1 | - |  | 25 | - |
Pass |  | mail_index_sync_map_deinit |  | mail-index-sync-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_update_hdr_dirty_flag |  | mail-index-sync-update.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_sync_map |  | mail-index-sync-update.c |  | 1 | - |  | 13 | - |
Pass |  | mail_index_sync_add_expunge |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync add_expunge_guid |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync add_flag_update |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_add_keyword_update |  | mail-index-sync.c |  | 1 | - |  | 11 | - |
FAIL |  | mail_index_sync_add_keyword_reset |  | mail-index-sync.c |  | 1 | - |  | 12 | - |
FAIL |  | mail_index_sync_add_append |  | mail-index-sync.c |  | 1 | - |  | 5 | - |
Pass |  | mail_index_sync add_transaction |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_add_dirty_updates |  | mail-index-sync.c |  | 1 | - |  | 4 | - |
Pass |  | mail_index_sync update_mailbox_pos |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_read_and_sort |  | mail-index-sync.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_need_sync |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_set_log_view |  | mail-index-sync.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_sync_begin |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_begin_init |  | mail-index-sync.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_index_sync_begin_to |  | mail-index-sync.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_index_sync_view_have_any |  | mail-index-sync.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_sync_have_any |  | mail-index-sync.c |  | 1 | - |  | 33 | - |
Pass |  | mail_index_sync_get_offsets |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_get_expunge |  | mail-index-sync.c |  | 1 | - |  | 17 | - |
Pass |  | mail_index_sync_get_update |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync get_keyword_update |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync get_keyword_reset |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_next |  | mail-index-sync.c |  | 1 | - |  | 3 | - |
Pass |  | mail_index_sync_have_more |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync set_commit_result |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync_reset |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_end |  | mail-index-sync.c |  | 1 | - |  | 3 | - |
Pass |  | mail_index_sync update_mailbox_offset |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync want_index_write |  | mail-index-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_commit |  | mail-index-sync.c |  | 1 | - |  | 3 | - |
Pass |  | mail_index_sync_rollback |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync_flags_apply |  | mail-index-sync.c |  | 0 |  | 0 |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
Pass |  | mail_index_sync_keywords_apply |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_sync_set_corrupted |  | mail-index-sync.c |  | 0 |  | 0 |
Pass |  | log_append_buffer |  | mail-index-tran action-export.c |  | 0 |  | 0 |
FAIL |  | log_get_hdr_update_buffer |  | mail-index-tran action-export.c |  | 1 | - |  | 9 | - |
FAIL |  | log_append_ext_intro |  | mail-index-tran action-export.c |  | 1 | - |  | 5 | - |
FAIL |  | log_append_ext_hdr_update |  | mail-index-tran action-export.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_transaction_log_append_ext_intros |  | mail-index-tran action-export.c |  | 1 | - |  | 5 | - |
FAIL |  | log_append_ext_recs |  | mail-index-tran action-export.c |  | 1 | - |  | 6 | - |
Pass |  | log_append_keyword_update |  | mail-index-tran action-export.c |  | 0 |  | 0 |
FAIL |  | log_append_keyword_updates |  | mail-index-tran action-export.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_transaction_export_new_uids |  | mail-index-tran action-export.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_index_transaction_export |  | mail-index-tran action-export.c |  | 1 | - |  | 2 | - |
Pass |  | mail_transactio _expunge_guid_cmp |  | mail-index-tran action-finish.c |  | 0 |  | 0 |
Pass |  | mail_index_tran action_sort_expunges |  | mail-index-tran action-finish.c |  | 0 |  | 0 |
FAIL |  | ext_reset_update_atomic |  | mail-index-tran action-finish.c |  | 1 | - |  | 9 | - |
Pass |  | transaction_upd te_atomic_reset_ids |  | mail-index-tran action-finish.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_drop_range |  | mail-index-tran action-finish.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_index_transaction_finish_flag_updates |  | mail-index-tran action-finish.c |  | 1 | - |  | 11 | - |
Pass |  | mail_index_tran action_check_conflicts |  | mail-index-tran action-finish.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_get_uid |  | mail-index-tran action-finish.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_convert_to_uids |  | mail-index-tran action-finish.c |  | 1 | - |  | 3 | - |
Pass |  | get_nonexpunged_uid2 |  | mail-index-tran action-finish.c |  | 0 |  | 0 |
FAIL |  | mail_index_convert_to_uid_ranges |  | mail-index-tran action-finish.c |  | 1 | - |  | 8 | - |
Pass |  | keyword_updates convert_to_uids |  | mail-index-tran action-finish.c |  | 0 |  | 0 |
FAIL |  | expunges_convert_to_uids |  | mail-index-tran action-finish.c |  | 1 | - |  | 6 | - |
Pass |  | mail_index_tran action_convert_to_uids |  | mail-index-tran action-finish.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_finish |  | mail-index-tran action-finish.c |  | 1 | - |  | 6 | - |
Pass |  | uid_map_cmp |  | mail-index-tran action-sort-appends.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_sort_appends_ext |  | mail-index-tran action-sort-appends.c |  | 1 | - |  | 13 | - |
FAIL |  | sort_appends_seq_range |  | mail-index-tran action-sort-appends.c |  | 1 | - |  | 4 | - |
Pass |  | mail_index_tran action_sort_appends_keywords |  | mail-index-tran action-sort-appends.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_sort_appends |  | mail-index-tran action-sort-appends.c |  | 1 | - |  | 13 | - |
Pass |  | mail_index_transaction_lookup |  | mail-index-tran action-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_reset_v |  | mail-index-tran action-update.c |  | 1 | - |  | 3 | - |
Pass |  | mail_index_tran action_set_log_updates |  | mail-index-tran action-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_update_day_headers |  | mail-index-tran action-update.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_append |  | mail-index-tran action-update.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_append_finish_uids |  | mail-index-tran action-update.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_update_uid |  | mail-index-tran action-update.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_update_modseq |  | mail-index-tran action-update.c |  | 1 | - |  | 4 | - |
Pass |  | mail_index_upda e_highest_modseq |  | mail-index-tran action-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_expunge_last_append_ext |  | mail-index-tran action-update.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_expunge_last_append |  | mail-index-tran action-update.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_expunge |  | mail-index-tran action-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_expunge_guid |  | mail-index-tran action-update.c |  | 1 | - |  | 3 | - |
Pass |  | update_minmax_flagupdate_seq |  | mail-index-tran action-update.c |  | 0 |  | 0 |
Pass |  | mail_index_tran action_get_flag_update_pos |  | mail-index-tran action-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_insert_flag_update |  | mail-index-tran action-update.c |  | 1 | - |  | 1 | - |
Pass |  | mail_index_record_modify_flags |  | mail-index-tran action-update.c |  | 0 |  | 0 |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | mail_index_update_flags_range |  | mail-index-tran action-update.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_update_flags |  | mail-index-tran action-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_update_header |  | mail-index-tran action-update.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_ext_resize |  | mail-index-tran action-update.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_ext_reset |  | mail-index-tran action-update.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_ext_reset_inc |  | mail-index-tran action-update.c |  | 1 | - |  | 12 | - |
FAIL |  | mail_index_transaction_has_ext_updates |  | mail-index-tran action-update.c |  | 1 | - |  | 3 | - |
Pass |  | mail_index_tran action_has_ext_changes |  | mail-index-tran action-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_ext_update_reset |  | mail-index-tran action-update.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_ext_set_reset_id |  | mail-index-tran action-update.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_update_header_ext |  | mail-index-tran action-update.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_update_ext |  | mail-index-tran action-update.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_atomic_inc_ext |  | mail-index-tran action-update.c |  | 1 | - |  | 9 | - |
FAIL |  | keyword_update_has_changes |  | mail-index-tran action-update.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_index_update_keywords |  | mail-index-tran action-update.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_cancel_flag_updates |  | mail-index-tran action-update.c |  | 0 |  | 0 |
Pass |  | mail_index_cancel_array |  | mail-index-tran action-update.c |  | 0 |  | 0 |
Pass |  | mail_index_canc l_keyword_updates |  | mail-index-tran action-update.c |  | 0 |  | 0 |
Pass |  | mail_index_transaction_reset |  | mail-index-tran action-update.c |  | 0 |  | 0 |
Pass |  | mail_index_reset |  | mail-index-tran action-update.c |  | 0 |  | 0 |
Pass |  | mail_index_set_deleted |  | mail-index-tran action-update.c |  | 0 |  | 0 |
Pass |  | mail_index_set_undeleted |  | mail-index-tran action-update.c |  | 0 |  | 0 |
Pass |  | mail_index_tran action_set_max_modseq |  | mail-index-tran action-update.c |  | 0 |  | 0 |
FAIL |  | tview_close |  | mail-index-transaction-view.c |  | 1 | - |  | 7 | - |
Pass |  | tview_get_message_count |  | mail-index-transaction-view.c |  | 0 |  | 0 |
FAIL |  | tview_get_header |  | mail-index-transaction-view.c |  | 1 | - |  | 14 | - |
FAIL |  | tview_apply_flag_updates |  | mail-index-transaction-view.c |  | 1 | - |  | 3 | - |
FAIL |  | tview_lookup_full |  | mail-index-transaction-view.c |  | 1 | - |  | 4 | - |
Pass |  | tview_lookup_uid |  | mail-index-transaction-view.c |  | 0 |  | 0 |
FAIL |  | tview_lookup_seq_range |  | mail-index-transaction-view.c |  | 1 | - |  | 3 | - |
FAIL |  | tview_lookup_first |  | mail-index-transaction-view.c |  | 1 | - |  | 2 | - |
Pass |  | keyword_index_add |  | mail-index-transaction-view.c |  | 0 |  | 0 |
Pass |  | keyword_index_remove |  | mail-index-transaction-view.c |  | 0 |  | 0 |
Pass |  | tview_lookup_keywords |  | mail-index-transaction-view.c |  | 0 |  | 0 |
Pass |  | tview_get_lookup_map |  | mail-index-transaction-view.c |  | 0 |  | 0 |
FAIL |  | tview_return_updated_ext |  | mail-index-transaction-view.c |  | 1 | - |  | 5 | - |
FAIL |  | tview_lookup_ext_full |  | mail-index-transaction-view.c |  | 1 | - |  | 8 | - |
Pass |  | tview_get_header_ext |  | mail-index-transaction-view.c |  | 0 |  | 0 |
FAIL |  | tview_ext_get_reset_id |  | mail-index-transaction-view.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_transaction_open_updated_view |  | mail-index-transaction-view.c |  | 1 | - |  | 5 | - |
Pass |  | mail_index_tran action_get_view |  | mail-index-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_is_expunged |  | mail-index-transaction.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_transaction_ref |  | mail-index-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_unref |  | mail-index-transaction.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_index_transaction_get_next_uid |  | mail-index-transaction.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_transaction_log_file_refresh |  | mail-index-transaction.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_transaction_commit_real |  | mail-index-transaction.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_transaction_commit_v |  | mail-index-transaction.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_tran action_rollback_v |  | mail-index-transaction.c |  | 0 |  | 0 |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | mail_index_transaction_commit |  | mail-index-transaction.c |  | 1 | - |  | 100 |
FAIL |  | mail_index_transaction_commit_full |  | mail-index-transaction.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_tran action_rollback |  | mail-index-transaction.c |  | 0 |  | 0 |
FAIL |  | mail_index_transaction_begin |  | mail-index-transaction.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_uint32_to_offset |  | mail-index-util.c |  | 0 |  | 0 |
Pass |  | mail_index_offset_to_uint32 |  | mail-index-util.c |  | 0 |  | 0 |
FAIL |  | mail_index_pack_num |  | mail-index-util.c |  | 1 | - |  | 15 | - |
FAIL |  | mail_index_unpack_num |  | mail-index-util.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_seq_record_cmp |  | mail-index-util.c |  | 0 |  | 0 |
FAIL |  | mail_index_seq_array_lookup |  | mail-index-util.c |  | 1 | - |  | 43 | - |
FAIL |  | mail_index_seq_array_add |  | mail-index-util.c |  | 1 | - |  | 6 | - |
FAIL |  | view_sync_set_log_view_range |  | mail-index-view-sync.c |  | 1 | - |  | 2 | - |
FAIL |  | view_sync_expunges2seqs |  | mail-index-view-sync.c |  | 1 | - |  | 7 | - |
Pass |  | view_sync_add_expunge_range |  | mail-index-view-sync.c |  | 0 |  | 0 |
Pass |  | view_sync_add_expunge_guids |  | mail-index-view-sync.c |  | 0 |  | 0 |
FAIL |  | view_sync_get_expunges |  | mail-index-view-sync.c |  | 1 | - |  | 7 | - |
FAIL |  | have_existing_expunges |  | mail-index-view-sync.c |  | 1 | - |  | 14 | - |
FAIL |  | have_existing_guid_expunge |  | mail-index-view-sync.c |  | 1 | - |  | 9 | - |
FAIL |  | view_sync_have_expunges |  | mail-index-view-sync.c |  | 1 | - |  | 3 | - |
Pass |  | uint_cmp |  | mail-index-view-sync.c |  | 0 |  | 0 |
FAIL |  | view_sync_lost_keywords_equal |  | mail-index-view-sync.c |  | 1 | - |  | 14 | - |
FAIL |  | view_sync_update_keywords |  | mail-index-view-sync.c |  | 1 | - |  | 4 | - |
FAIL |  | view_sync_apply_lost_changes |  | mail-index-view-sync.c |  | 1 | - |  | 6 | - |
FAIL |  | view_sync_get_log_lost_changes |  | mail-index-view-sync.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_view_sync_init_fix |  | mail-index-view-sync.c |  | 1 | - |  | 12 | - |
FAIL |  | mail_index_view_sync_begin |  | mail-index-view-sync.c |  | 1 | - |  | 9 | - |
Pass |  | view_sync_is_hidden |  | mail-index-view-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_view_sync_want |  | mail-index-view-sync.c |  | 1 | - |  | 1 | - |
FAIL |  | mail_index_view_sync_get_next_transaction |  | mail-index-view-sync.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_view_sync_get_rec |  | mail-index-view-sync.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_view_sync_next_lost |  | mail-index-view-sync.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_view_sync_next |  | mail-index-view-sync.c |  | 1 | - |  | 4 | - |
Pass |  | mail_index_view sync_get_expunges |  | mail-index-view-sync.c |  | 0 |  | 0 |
Pass |  | mail_index_view sync_clean_log_syncs |  | mail-index-view-sync.c |  | 0 |  | 0 |
FAIL |  | mail_index_view_sync_commit |  | mail-index-view-sync.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_view_add_hidden_transaction |  | mail-index-view-sync.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_view_clone |  | mail-index-view.c |  | 1 | - |  | 5 | - |
Pass |  | mail_index_view_ref |  | mail-index-view.c |  | 0 |  | 0 |
FAIL |  | view_close |  | mail-index-view.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_view is_inconsistent |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_view_get_index |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_view get_transaction_count |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_view transaction_ref |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_view transaction_unref |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_view_ref_map |  | mail-index-view.c |  | 0 |  | 0 |
FAIL |  | mail_index_view_unref_maps |  | mail-index-view.c |  | 1 | - |  | 3 | - |
Pass |  | view_get_messages_count |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | view_get_header |  | mail-index-view.c |  | 0 |  | 0 |
FAIL |  | view_lookup_full |  | mail-index-view.c |  | 1 | - |  | 7 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
Pass |  | view_lookup_uid |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | view_lookup_seq_range |  | mail-index-view.c |  | 0 |  | 0 |
FAIL |  | view_lookup_first |  | mail-index-view.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_data_lookup_keywords |  | mail-index-view.c |  | 1 | - |  | 7 | - |
FAIL |  | view_lookup_keywords |  | mail-index-view.c |  | 1 | - |  | 50 | - |
FAIL |  | view_map_lookup_ext_full |  | mail-index-view.c |  | 1 | - |  | 11 | - |
FAIL |  | view_lookup_ext_full |  | mail-index-view.c |  | 1 | - |  | 17 | - |
FAIL |  | view_get_header_ext |  | mail-index-view.c |  | 1 | - |  | 18 | - |
FAIL |  | view_ext_get_reset_id |  | mail-index-view.c |  | 1 | - |  | 21 | - |
FAIL |  | mail_index_view_close |  | mail-index-view.c |  | 1 | - |  | 5 | - |
Pass |  | mail_index_view get_messages_count |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_get_header |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_lookup |  | mail-index-view.c |  | 0 |  | 0 |
FAIL |  | mail_index_lookup_full |  | mail-index-view.c |  | 1 | - |  | 67 | - |
FAIL |  | mail_index_is_expunged |  | mail-index-view.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_index_map_lookup_keywords |  | mail-index-view.c |  | 1 | - |  | 24 | - |
Pass |  | mail_index_lookup_keywords |  | mail-index-view.c |  | 0 |  | 0 |
FAIL |  | mail_index_lookup_view_flags |  | mail-index-view.c |  | 1 | - |  | 4 | - |
Pass |  | mail_index_lookup_uid |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_lookup_seq_range |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_lookup_seq |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_lookup_first |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_lookup_ext |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_lookup_ext_full |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_get_header_ext |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_map_get_header_ext |  | mail-index-view.c |  | 0 |  | 0 |
Pass |  | mail_index_ext_get_reset_id |  | mail-index-view.c |  | 0 |  | 0 |
FAIL |  | mail_index_ext_get_size |  | mail-index-view.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_view_open_with_map |  | mail-index-view.c |  | 1 | - |  | 15 | - |
Pass |  | mail_index_view_open |  | mail-index-view.c |  | 0 |  | 0 |
FAIL |  | mail_index_view_get_ext |  | mail-index-view.c |  | 1 | - |  | 18 | - |
FAIL |  | mail_index_create_backup |  | mail-index-write.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_index_recreate |  | mail-index-write.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_write_map_over |  | mail-index-write.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_has_last_changed |  | mail-index-write.c |  | 1 | - |  | 104 |
FAIL |  | mail_index_write |  | mail-index-write.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_alloc |  | mail-index.c |  | 1 | - |  | 12 | - |
FAIL |  | mail_index_free |  | mail-index.c |  | 1 | - |  | 28 | - |
Pass |  | mail_index_set_fsync_mode |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_set_permissions |  | mail-index.c |  | 1 | - |  | 22 | - |
Pass |  | mail_index_set_lock_method |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_ext_register |  | mail-index.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_ext_lookup |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_register_expunge_handler |  | mail-index.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_index_unregister_expunge_handler |  | mail-index.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_register_sync_handler |  | mail-index.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_unregister_sync_handler |  | mail-index.c |  | 1 | - |  | 7 | - |
Pass |  | mail_index_regi ter_sync_lost_handler |  | mail-index.c |  | 0 |  | 0 |
Pass |  | mail_index_unre ister_sync_lost_handler |  | mail-index.c |  | 0 |  | 0 |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | mail_index_keyword_lookup |  | mail-index.c |  | 1 | - |  | 13 | - |
FAIL |  | mail_index_keyword_lookup_or_create |  | mail-index.c |  | 1 | - |  | 10 | - |
Pass |  | mail_index_get_keywords |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_keywords_create |  | mail-index.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_index_keywords_create_from_indexes |  | mail-index.c |  | 1 | - |  | 9 | - |
Pass |  | mail_index_keywords_ref |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_keywords_unref |  | mail-index.c |  | 1 | - |  | 5 | - |
Pass |  | mail_index_try_open_only |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_try_open |  | mail-index.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_index_create_tmp_file |  | mail-index.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_index_open_files |  | mail-index.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_index_open |  | mail-index.c |  | 1 | - |  | 5 | - |
Pass |  | mail_index_open_or_create |  | mail-index.c |  | 0 |  | 0 |
Pass |  | mail_index_close_file |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_close |  | mail-index.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_index_unlink |  | mail-index.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_index_reopen_if_changed |  | mail-index.c |  | 1 | - |  | 2 | - |
Pass |  | mail_index_refresh |  | mail-index.c |  | 0 |  | 0 |
Pass |  | mail_index_get_cache |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_set_error |  | mail-index.c |  | 1 | - |  | 10 | - |
Pass |  | mail_index_is_in_memory |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_move_to_memory |  | mail-index.c |  | 1 | - |  | 9 | - |
Pass |  | mail_index_mark_corrupted |  | mail-index.c |  | 0 |  | 0 |
Pass |  | mail_index_is_deleted |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_get_modification_time |  | mail-index.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_fchown |  | mail-index.c |  | 1 | - |  | 4 | - |
Pass |  | mail_index_set_syscall_error |  | mail-index.c |  | 0 |  | 0 |
FAIL |  | mail_index_file_set_syscall_error |  | mail-index.c |  | 1 | - |  | 1 | - |
Pass |  | mail_index_get_error_message |  | mail-index.c |  | 0 |  | 0 |
Pass |  | mail_index_reset_error |  | mail-index.c |  | 0 |  | 0 |
Pass |  | mail_transactio _log_append_add |  | mail-transaction-log-append.c |  | 0 |  | 0 |
FAIL |  | log_buffer_move_to_memory |  | mail-transaction-log-append.c |  | 1 | - |  | 3 | - |
FAIL |  | log_buffer_write |  | mail-transaction-log-append.c |  | 1 | - |  | 4 | - |
FAIL |  | log_append_sync_offset_if_needed |  | mail-transaction-log-append.c |  | 1 | - |  | 14 | - |
FAIL |  | mail_transaction_log_append_locked |  | mail-transaction-log-append.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_transaction_log_append_begin |  | mail-transaction-log-append.c |  | 1 | - |  | 9 | - |
FAIL |  | mail_transaction_log_append_commit |  | mail-transaction-log-append.c |  | 1 | - |  | 16 | - |
Pass |  | log_file_set_syscall_error |  | mail-transaction-log-file.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_mark_corrupted |  | mail-transaction-log-file.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_transaction_log_file_set_corrupted |  | mail-transaction-log-file.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_transaction_log_file_alloc |  | mail-transaction-log-file.c |  | 1 | - |  | 38 | - |
FAIL |  | mail_transaction_log_file_free |  | mail-transaction-log-file.c |  | 1 | - |  | 8 | - |
Pass |  | mail_transactio _log_file_skip_to_head |  | mail-transaction-log-file.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_file_add_to_list |  | mail-transaction-log-file.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_transaction_log_init_hdr |  | mail-transaction-log-file.c |  | 1 | - |  | 1 | - |
FAIL |  | mail_transaction_log_file_alloc_in_memory |  | mail-transaction-log-file.c |  | 1 | - |  | 38 | - |
Pass |  | mail_transactio _log_file_dotlock |  | mail-transaction-log-file.c |  | 0 |  | 0 |
Pass |  | mail_transactio _log_file_undotlock |  | mail-transaction-log-file.c |  | 0 |  | 0 |
Pass |  | mail_transaction_log_file_lock |  | mail-transaction-log-file.c |  | 0 |  | 0 |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
Pass |  | mail_transactio _log_file_unlock |  | mail-transaction-log-file.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_file_read_header |  | mail-transaction-log-file.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_transaction_log_file_read_hdr |  | mail-transaction-log-file.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_transaction_log_file_stat |  | mail-transaction-log-file.c |  | 1 | - |  | 4 | - |
Pass |  | mail_transactio _log_file_is_dupe |  | mail-transaction-log-file.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_file_create2 |  | mail-transaction-log-file.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_transaction_log_file_create |  | mail-transaction-log-file.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_transaction_log_file_open |  | mail-transaction-log-file.c |  | 1 | - |  | 3 | - |
FAIL |  | log_file_track_mailbox_sync_offset_hdr |  | mail-transaction-log-file.c |  | 1 | - |  | 1 | - |
Pass |  | mail_transaction_update_modseq |  | mail-transaction-log-file.c |  | 0 |  | 0 |
Pass |  | modseq_cache_hit |  | mail-transaction-log-file.c |  | 0 |  | 0 |
FAIL |  | modseq_cache_get_offset |  | mail-transaction-log-file.c |  | 1 | - |  | 2 | - |
FAIL |  | modseq_cache_get_modseq |  | mail-transaction-log-file.c |  | 1 | - |  | 2 | - |
FAIL |  | log_get_synced_record |  | mail-transaction-log-file.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_transaction_log_file_get_highest_modseq_at |  | mail-transaction-log-file.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_transaction_log_file_get_modseq_next_offset |  | mail-transaction-log-file.c |  | 1 | - |  | 3 | - |
FAIL |  | log_file_track_sync |  | mail-transaction-log-file.c |  | 1 | - |  | 1 | - |
FAIL |  | mail_transaction_log_file_sync |  | mail-transaction-log-file.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_transaction_log_file_insert_read |  | mail-transaction-log-file.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_transaction_log_file_read_more |  | mail-transaction-log-file.c |  | 1 | - |  | 4 | - |
Pass |  | mail_transactio _log_file_need_nfs_flush |  | mail-transaction-log-file.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_file_read |  | mail-transaction-log-file.c |  | 1 | - |  | 3 | - |
Pass |  | log_file_map_check_offsets |  | mail-transaction-log-file.c |  | 0 |  | 0 |
Pass |  | mail_transaction_log_file_mmap |  | mail-transaction-log-file.c |  | 0 |  | 0 |
Pass |  | mail_transactio _log_file_munmap |  | mail-transaction-log-file.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_file_map_mmap |  | mail-transaction-log-file.c |  | 1 | - |  | 11 | - |
FAIL |  | mail_transaction_log_file_map |  | mail-transaction-log-file.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_transaction_log_file_move_to_memory |  | mail-transaction-log-file.c |  | 1 | - |  | 4 | - |
FAIL |  | mail_transaction_log_view_open |  | mail-transaction-log-view.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_transaction_log_view_unref_all |  | mail-transaction-log-view.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_transaction_log_view_close |  | mail-transaction-log-view.c |  | 1 | - |  | 13 | - |
FAIL |  | mail_transaction_log_views_close |  | mail-transaction-log-view.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_transaction_log_view_set |  | mail-transaction-log-view.c |  | 1 | - |  | 1 | - |
Pass |  | mail_transactio _log_view_clear |  | mail-transaction-log-view.c |  | 0 |  | 0 |
Pass |  | mail_transactio _log_view_get_prev_pos |  | mail-transaction-log-view.c |  | 0 |  | 0 |
Pass |  | mail_transactio _log_view_get_prev_modseq |  | mail-transaction-log-view.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_view_get_last |  | mail-transaction-log-view.c |  | 1 | - |  | 2 | - |
FAIL |  | mail_transaction_log_view_is_last |  | mail-transaction-log-view.c |  | 1 | - |  | 33 | - |
Pass |  | mail_transactio _log_view_set_corrupted |  | mail-transaction-log-view.c |  | 0 |  | 0 |
Pass |  | mail_transactio _log_view_is_corrupted |  | mail-transaction-log-view.c |  | 0 |  | 0 |
FAIL |  | log_view_is_uid_range_valid |  | mail-transaction-log-view.c |  | 1 | - |  | 5 | - |
FAIL |  | log_view_is_record_valid |  | mail-transaction-log-view.c |  | 1 | - |  | 3 | - |
FAIL |  | log_view_get_next |  | mail-transaction-log-view.c |  | 1 | - |  | 6 | - |
FAIL |  | mail_transaction_log_view_next |  | mail-transaction-log-view.c |  | 1 | - |  | 7 | - |
Pass |  | mail_transaction_log_view_mark |  | mail-transaction-log-view.c |  | 0 |  | 0 |
Pass |  | mail_transactio _log_view_rewind |  | mail-transaction-log-view.c |  | 0 |  | 0 |
Pass |  | mail_transaction_log_set_head |  | mail-transaction-log.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_alloc |  | mail-transaction-log.c |  | 1 | - |  | 14 | - |
Pass |  | mail_transactio _log_2_unlink_old |  | mail-transaction-log.c |  | 0 |  | 0 |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | mail_transaction_log_open |  | mail-transaction-log.c |  | 1 | - |  | 23 | - |
FAIL |  | mail_transaction_log_create |  | mail-transaction-log.c |  | 1 | - |  | 15 | - |
FAIL |  | mail_transaction_log_close |  | mail-transaction-log.c |  | 1 | - |  | 3 | - |
FAIL |  | mail_transaction_log_free |  | mail-transaction-log.c |  | 1 | - |  | 42 | - |
FAIL |  | mail_transaction_log_move_to_memory |  | mail-transaction-log.c |  | 1 | - |  | 23 | - |
FAIL |  | mail_transaction_log_indexid_changed |  | mail-transaction-log.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_transaction_logs_clean |  | mail-transaction-log.c |  | 1 | - |  | 2 | - |
Pass |  | mail_transactio _log_want_rotate |  | mail-transaction-log.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_rotate |  | mail-transaction-log.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_transaction_log_refresh |  | mail-transaction-log.c |  | 1 | - |  | 3 | - |
Pass |  | mail_transactio _log_get_mailbox_sync_pos |  | mail-transaction-log.c |  | 0 |  | 0 |
Pass |  | mail_transactio _log_set_mailbox_sync_pos |  | mail-transaction-log.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_find_file |  | mail-transaction-log.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_transaction_log_lock_head |  | mail-transaction-log.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_transaction_log_sync_lock |  | mail-transaction-log.c |  | 1 | - |  | 6 | - |
Pass |  | mail_transactio _log_sync_unlock |  | mail-transaction-log.c |  | 0 |  | 0 |
Pass |  | mail_transaction_log_get_head |  | mail-transaction-log.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_get_tail |  | mail-transaction-log.c |  | 1 | - |  | 10 | - |
Pass |  | mail_transactio _log_is_head_prev |  | mail-transaction-log.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_get_mtime |  | mail-transaction-log.c |  | 1 | - |  | 5 | - |
FAIL |  | mailbox_list_alloc_sync_dir |  | mailbox-list-index-sync.c |  | 1 | - |  | 25 | - |
FAIL |  | mailbox_list_copy_sync_dir |  | mailbox-list-index-sync.c |  | 1 | - |  | 6 | - |
Pass |  | mailbox_list_sync_record_cmp |  | mailbox-list-index-sync.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_sync_dir_lookup |  | mailbox-list-index-sync.c |  | 1 | - |  | 4 | - |
FAIL |  | mailbox_list_alloc_add_record |  | mailbox-list-index-sync.c |  | 1 | - |  | 15 | - |
FAIL |  | mailbox_list_index_sync_get_seq |  | mailbox-list-index-sync.c |  | 1 | - |  | 3 | - |
FAIL |  | mailbox_list_index_sync_int |  | mailbox-list-index-sync.c |  | 1 | - |  | 4 | - |
Pass |  | mailbox_list_index_get_root |  | mailbox-list-index-sync.c |  | 0 |  | 0 |
FAIL |  | sync_mail_sync_init |  | mailbox-list-index-sync.c |  | 1 | - |  | 42 | - |
FAIL |  | sync_mail_sync_init2 |  | mailbox-list-index-sync.c |  | 1 | - |  | 6 | - |
FAIL |  | mailbox_list_index_sync_init |  | mailbox-list-index-sync.c |  | 1 | - |  | 19 | - |
Pass |  | mailbox_list_in ex_sync_get_view |  | mailbox-list-index-sync.c |  | 0 |  | 0 |
Pass |  | mailbox_list_in ex_sync_get_transaction |  | mailbox-list-index-sync.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_index_sync_more |  | mailbox-list-index-sync.c |  | 1 | - |  | 18 | - |
Pass |  | mailbox_list_index_sync_grow |  | mailbox-list-index-sync.c |  | 0 |  | 0 |
Pass |  | mailbox_list_in ex_sync_alloc_space |  | mailbox-list-index-sync.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_index_sync_recreate_dir |  | mailbox-list-index-sync.c |  | 1 | - |  | 3 | - |
FAIL |  | mailbox_list_index_sync_update_dir |  | mailbox-list-index-sync.c |  | 1 | - |  | 3 | - |
FAIL |  | mailbox_list_index_sync_write_dir |  | mailbox-list-index-sync.c |  | 1 | - |  | 1 | - |
FAIL |  | mailbox_list_index_sync_write |  | mailbox-list-index-sync.c |  | 1 | - |  | 2 | - |
FAIL |  | mailbox_list_index_sync_commit |  | mailbox-list-index-sync.c |  | 1 | - |  | 3 | - |
Pass |  | mailbox_list_in ex_sync_rollback |  | mailbox-list-index-sync.c |  | 0 |  | 0 |
Pass |  | mailbox_list_in ex_need_compress |  | mailbox-list-index-sync.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_copy_to_mem_all |  | mailbox-list-index-sync.c |  | 1 | - |  | 6 | - |
FAIL |  | mailbox_list_index_compress |  | mailbox-list-index-sync.c |  | 1 | - |  | 3 | - |
Pass |  | mailbox_list_in ex_set_syscall_error |  | mailbox-list-index.c |  | 0 |  | 0 |
Pass |  | mailbox_list_index_unmap |  | mailbox-list-index.c |  | 0 |  | 0 |
Pass |  | mailbox_list_index_file_close |  | mailbox-list-index.c |  | 0 |  | 0 |
Pass |  | mailbox_list_in ex_set_corrupted |  | mailbox-list-index.c |  | 0 |  | 0 |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
Pass |  | mailbox_list_in ex_check_header |  | mailbox-list-index.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_index_map |  | mailbox-list-index.c |  | 1 | - |  | 2 | - |
Pass |  | mailbox_list_index_map_area |  | mailbox-list-index.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_index_init_header |  | mailbox-list-index.c |  | 1 | - |  | 7 | - |
Pass |  | mailbox_list_in ex_is_recreated |  | mailbox-list-index.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_index_file_create |  | mailbox-list-index.c |  | 1 | - |  | 4 | - |
FAIL |  | mailbox_list_index_file_try_open_or_create |  | mailbox-list-index.c |  | 1 | - |  | 11 | - |
Pass |  | mailbox_list_in ex_open_or_create |  | mailbox-list-index.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_index_alloc |  | mailbox-list-index.c |  | 1 | - |  | 46 | - |
FAIL |  | mailbox_list_index_free |  | mailbox-list-index.c |  | 1 | - |  | 29 | - |
FAIL |  | mailbox_list_get_name |  | mailbox-list-index.c |  | 1 | - |  | 3 | - |
FAIL |  | mailbox_list_index_get_dir |  | mailbox-list-index.c |  | 1 | - |  | 10 | - |
FAIL |  | mailbox_list_record_cmp |  | mailbox-list-index.c |  | 1 | - |  | 8 | - |
FAIL |  | mailbox_list_index_dir_lookup_rec |  | mailbox-list-index.c |  | 1 | - |  | 11 | - |
FAIL |  | mailbox_list_index_lookup_rec |  | mailbox-list-index.c |  | 1 | - |  | 5 | - |
FAIL |  | mailbox_list_index_refresh |  | mailbox-list-index.c |  | 1 | - |  | 11 | - |
FAIL |  | mailbox_list_index_view_init |  | mailbox-list-index.c |  | 1 | - |  | 7 | - |
FAIL |  | mailbox_list_index_view_deinit |  | mailbox-list-index.c |  | 1 | - |  | 29 | - |
Pass |  | mailbox_list_index_lookup |  | mailbox-list-index.c |  | 0 |  | 0 |
FAIL |  | mailbox_list_index_iterate_init |  | mailbox-list-index.c |  | 1 | - |  | 5 | - |
FAIL |  | mailbox_list_index_iterate_next |  | mailbox-list-index.c |  | 1 | - |  | 5 | - |
FAIL |  | mailbox_list_index_iterate_deinit |  | mailbox-list-index.c |  | 1 | - |  | 9 | - |
FAIL |  | mailbox_log_alloc |  | mailbox-log.c |  | 1 | - |  | 30 | - |
FAIL |  | mailbox_log_free |  | mailbox-log.c |  | 1 | - |  | 32 | - |
Pass |  | mailbox_log_close |  | mailbox-log.c |  | 0 |  | 0 |
FAIL |  | mailbox_log_set_permissions |  | mailbox-log.c |  | 1 | - |  | 22 | - |
Pass |  | mailbox_log_open |  | mailbox-log.c |  | 0 |  | 0 |
Conditional Pass |  | mailbox_log_rotate_if_needed |  | mailbox-log.c |  | 1 | - |  | 3 | - |
Pass |  | mailbox_log_rec rd_set_timestamp |  | mailbox-log.c |  | 0 |  | 0 |
Pass |  | mailbox_log_rec rd_get_timestamp |  | mailbox-log.c |  | 0 |  | 0 |
Pass |  | mailbox_log_append |  | mailbox-log.c |  | 0 |  | 0 |
FAIL |  | mailbox_log_iter_open_next |  | mailbox-log.c |  | 1 | - |  | 5 | - |
FAIL |  | mailbox_log_iter_init |  | mailbox-log.c |  | 1 | - |  | 30 | - |
FAIL |  | mailbox_log_iter_next |  | mailbox-log.c |  | 1 | - |  | 5 | - |
Pass |  | mailbox_log_iter_deinit |  | mailbox-log.c |  | 0 |  | 0 |
FAIL |  | mail_index_sync_set_corrupted |  | test-mail-index-sync-ext.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_index_sync_get_atomic_map |  | test-mail-index-sync-ext.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_map_register_ext |  | test-mail-index-sync-ext.c |  | 1 | - |  | 25 | - |
FAIL |  | mail_index_ext_lookup |  | test-mail-index-sync-ext.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_map_lookup_ext |  | test-mail-index-sync-ext.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_map_ext_hdr_check |  | test-mail-index-sync-ext.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_modseq_hdr_update |  | test-mail-index-sync-ext.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_index_lookup_seq |  | test-mail-index-sync-ext.c |  | 1 | - |  | 20 | - |
FAIL |  | mail_index_sync_write_seq_update |  | test-mail-index-sync-ext.c |  | 1 | - |  | 50 | - |
FAIL |  | test_mail_index_sync_ext_atomic_inc |  | test-mail-index-sync-ext.c |  | 1 | - |  | 9 | - |
Pass |  | main |  | test-mail-index-sync-ext.c |  | 0 |  | 0 |
FAIL |  | mail_index_map_get_ext_idx |  | test-mail-index transaction-finish.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_ext_set_reset_id |  | test-mail-index transaction-finish.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_index_transaction_set_log_updates |  | test-mail-index transaction-finish.c |  | 1 | - |  | 50 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | mail_index_update_day_headers |  | test-mail-index transaction-finish.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_index_cancel_flag_updates |  | test-mail-index transaction-finish.c |  | 1 | - |  | 25 | - |
FAIL |  | mail_index_cancel_keyword_updates |  | test-mail-index transaction-finish.c |  | 1 | - |  | 25 | - |
FAIL |  | mail_index_transaction_sort_appends |  | test-mail-index transaction-finish.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_index_map |  | test-mail-index transaction-finish.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_update_modseq |  | test-mail-index transaction-finish.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_index_lookup |  | test-mail-index transaction-finish.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_transaction_lookup |  | test-mail-index transaction-finish.c |  | 1 | - |  | 8 | - |
FAIL |  | mail_index_modseq_lookup |  | test-mail-index transaction-finish.c |  | 1 | - |  | 7 | - |
FAIL |  | mail_index_modseq_get_highest |  | test-mail-index transaction-finish.c |  | 1 | - |  | 25 | - |
FAIL |  | test_mail_index_transaction_finish_flag_updates |  | test-mail-index transaction-finish.c |  | 1 | - |  | 6 | - |
FAIL |  | test_mail_index_transaction_finish_check_conflicts |  | test-mail-index transaction-finish.c |  | 1 | - |  | 4 | - |
FAIL |  | test_mail_index_transaction_finish_uid_updates |  | test-mail-index transaction-finish.c |  | 1 | - |  | 7 | - |
FAIL |  | test_mail_index_transaction_finish_modseq_updates |  | test-mail-index transaction-finish.c |  | 1 | - |  | 3 | - |
FAIL |  | test_mail_index_transaction_finish_expunges |  | test-mail-index transaction-finish.c |  | 1 | - |  | 3 | - |
Pass |  | main |  | test-mail-index transaction-finish.c |  | 0 |  | 0 |
FAIL |  | mail_index_get_header |  | test-mail-index transaction-update.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_lookup |  | test-mail-index transaction-update.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_lookup_keywords |  | test-mail-index transaction-update.c |  | 1 | - |  | 20 | - |
FAIL |  | mail_index_map_get_ext_idx |  | test-mail-index transaction-update.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_index_view_get_messages_count |  | test-mail-index transaction-update.c |  | 1 | - |  | 25 | - |
FAIL |  | mail_index_transaction_new |  | test-mail-index transaction-update.c |  | 1 | - |  | 33 | - |
FAIL |  | test_mail_index_append |  | test-mail-index transaction-update.c |  | 1 | - |  | 3 | - |
FAIL |  | test_mail_index_flag_update_fastpath |  | test-mail-index transaction-update.c |  | 1 | - |  | 1 | - |
FAIL |  | test_mail_index_flag_update_simple_merges |  | test-mail-index transaction-update.c |  | 1 | - |  | 2 | - |
FAIL |  | test_mail_index_flag_update_complex_merges |  | test-mail-index transaction-update.c |  | 1 | - |  | 1 | - |
Pass |  | flags_array_check |  | test-mail-index transaction-update.c |  | 0 |  | 0 |
FAIL |  | test_mail_index_flag_update_random |  | test-mail-index transaction-update.c |  | 1 | - |  | 3 | - |
FAIL |  | test_mail_index_cancel_flag_updates |  | test-mail-index transaction-update.c |  | 1 | - |  | 2 | - |
FAIL |  | test_mail_index_flag_update_appends |  | test-mail-index transaction-update.c |  | 1 | - |  | 2 | - |
Pass |  | test_flag_update_pos |  | test-mail-index transaction-update.c |  | 0 |  | 0 |
FAIL |  | test_mail_index_transaction_get_flag_update_pos |  | test-mail-index transaction-update.c |  | 1 | - |  | 1 | - |
FAIL |  | test_mail_index_uid_update |  | test-mail-index transaction-update.c |  | 1 | - |  | 3 | - |
FAIL |  | test_mail_index_modseq_update |  | test-mail-index transaction-update.c |  | 1 | - |  | 2 | - |
FAIL |  | test_mail_index_expunge |  | test-mail-index transaction-update.c |  | 1 | - |  | 1 | - |
Pass |  | main |  | test-mail-index transaction-update.c |  | 0 |  | 0 |
FAIL |  | mail_index_file_set_syscall_error |  | test-mail-trans ction-log-append.c |  | 1 | - |  | 33 | - |
FAIL |  | mail_transaction_log_lock_head |  | test-mail-trans ction-log-append.c |  | 1 | - |  | 10 | - |
FAIL |  | mail_transaction_log_file_unlock |  | test-mail-trans ction-log-append.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_transaction_update_modseq |  | test-mail-trans ction-log-append.c |  | 1 | - |  | 11 | - |
FAIL |  | mail_index_move_to_memory |  | test-mail-trans ction-log-append.c |  | 1 | - |  | 33 | - |
FAIL |  | test_append_expunge |  | test-mail-trans ction-log-append.c |  | 1 | - |  | 5 | - |
FAIL |  | test_append_sync_offset |  | test-mail-trans ction-log-append.c |  | 1 | - |  | 6 | - |
FAIL |  | test_mail_transaction_log_append |  | test-mail-trans ction-log-append.c |  | 1 | - |  | 9 | - |
Pass |  | main |  | test-mail-trans ction-log-append.c |  | 0 |  | 0 |
FAIL |  | mail_transaction_log_file_set_corrupted |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_transaction_logs_clean |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 50 | - |
FAIL |  | mail_transaction_log_find_file |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 5 | - |
FAIL |  | mail_transaction_log_file_map |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 33 | - |

`Quality Result` |  | `Procedure` |  | `Source File` |  | `Unique Violations` |  | `Failure Density` |
`` |  |  |  |  | `(Viols/R.Line %)` |
FAIL |  | mail_transaction_log_file_get_highest_modseq_at |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 25 | - |
FAIL |  | mail_transaction_update_modseq |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 33 | - |
FAIL |  | test_transaction_log_file_add |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 10 | - |
FAIL |  | view_is_file_refed |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 3 | - |
Pass |  | add_append_record |  | test-mail-trans ction-log-view.c |  | 0 |  | 0 |
FAIL |  | test_mail_transaction_log_view |  | test-mail-trans ction-log-view.c |  | 1 | - |  | 5 | - |
Pass |  | main |  | test-mail-trans ction-log-view.c |  | 0 |  | 0 |

#### Global Information

#### Source Files in System

Name | Last Modification Date
--- | ---
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\test-mail-transaction-log-view.c | Mon Apr 05 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\test-mail-transaction-log-append.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\test-mail-index-transaction-update.c | Thu Apr 29 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\test-mail-index-transaction-finish.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\test-mail-index-sync-ext.c | Thu Apr 29 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mailbox-log.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mailbox-list-index.c | Fri Jun 25 08:22:16 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mailbox-list-index-sync.c | Fri Jun 25 08:22:16 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-transaction-log.c | Fri Jun 25 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-transaction-log-view.c | Tue May 25 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-transaction-log-file.c | Fri Jun 25 08:22:16 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-transaction-log-append.c | Fri Jun 25 08:22:16 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index.c | Fri Jun 25 08:22:16 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-write.c | Fri Jun 25 08:22:16 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-view.c | Sun Jun 13 12:01:56 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-view-sync.c | Sun Apr 04 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-util.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-transaction.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-transaction-view.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-transaction-update.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-transaction-sort-appends.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-transaction-finish.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-transaction-export.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-sync.c | Fri Mar 26 20:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-sync-update.c | Tue May 25 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-sync-keywords.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-sync-ext.c | Thu Apr 29 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-strmap.c | Wed Jun 23 19:00:06 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-modseq.c | Fri Mar 26 20:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-map.c | Mon Apr 05 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-map-read.c | Fri May 14 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-map-hdr.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-lock.c | Wed Jun 23 19:00:06 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-fsck.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-dummy-view.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-index-alloc-cache.c | Sun Apr 04 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-cache.c | Fri Jun 25 08:22:16 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-cache-transaction.c | Fri Jun 25 08:22:16 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-cache-sync-update.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-cache-lookup.c | Fri May 14 19:00:04 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-cache-fields.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-cache-decisions.c | Fri Mar 26 07:16:36 2010
C:\Code\SAMATE\SATE2010\dovecot-2.0.beta6.20100626\dovecot-2.0.beta6\src\lib-index\mail-cache-compress.c | Fri Jun 25 08:22:16 2010

#### Global Basic Information

Number of procedures: | 790
Number of locally uncalled procedures: | 38
Maximum loop depth: | 3
Total Cyclomatic Complexity: | 4040
Number of reformatted executable lines: | 41529
Number of lines of comments: | 44887

## Summary Report on all Program Components which FAIL

Globals / code outside procedures - FAIL

#### Standards Violation Summary - All files

Code | File: Src Line | Violation | Standard
--- | --- | --- | ---
M | compat.h: 214 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 215 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 216 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 217 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 218 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 219 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 220 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 221 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 222 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 223 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 224 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 225 | Macro replacement list needs parentheses. | CERT PRE02-C
M | compat.h: 226 | Macro replacement list needs parentheses. | CERT PRE02-C
M | macros.h: 196 | Macro replacement list needs parentheses. | CERT PRE02-C
M | macros.h: 197 | Macro replacement list needs parentheses. | CERT PRE02-C
M | macros.h: 204 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | macros.h: 204 | Macro replacement list needs parentheses. | CERT PRE02-C
M | macros.h: 205 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | macros.h: 205 | Macro replacement list needs parentheses. | CERT PRE02-C
M | macros.h: 223 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | macros.h: 223 | Macro replacement list needs parentheses. | CERT PRE02-C
M | macros.h: 232 | Macro replacement list needs parentheses. | CERT PRE02-C
M | data-stack.h: 49 | Macro replacement list needs parentheses. | CERT PRE02-C
M | data-stack.h: 51 | Macro replacement list needs parentheses. | CERT PRE02-C
M | data-stack.h: 75 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | data-stack.h: 85 | Macro replacement list needs parentheses. | CERT PRE02-C
M | data-stack.h: 90 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | data-stack.h: 90 | Macro replacement list needs parentheses. | CERT PRE02-C
M | data-stack.h: 97 | Macro replacement list needs parentheses. | CERT PRE02-C
M | mempool.h: 84 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mempool.h: 87 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mempool.h: 88 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mempool.h: 99 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mempool.h: 99 | Macro replacement list needs parentheses. | CERT PRE02-C
M | mempool.h: 102 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mempool.h: 102 | Macro replacement list needs parentheses. | CERT PRE02-C
M | imem.h: 8 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | imem.h: 8 | Macro replacement list needs parentheses. | CERT PRE02-C
M | imem.h: 14 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | imem.h: 14 | Macro replacement list needs parentheses. | CERT PRE02-C
M | imem.h: 15 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | imem.h: 15 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array-decl.h: 4 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array-decl.h: 4 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array-decl.h: 7 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array-decl.h: 7 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array-decl.h: 9 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array-decl.h: 9 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 35 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 35 | Macro replacement list needs parentheses. | CERT PRE02-C

Code | File: Src Line | Violation | Standard
--- | --- | --- | ---
M | array.h: 37 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 37 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 39 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 39 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 53 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 58 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 58 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 62 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 62 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 90 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 90 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 102 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 102 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 110 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 118 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 126 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 134 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 143 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 143 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 153 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 164 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 164 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 174 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 174 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 183 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 183 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 192 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 192 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 201 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 201 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 206 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 206 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 211 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 211 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 216 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 216 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 228 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 232 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 232 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 252 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 257 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 261 | Macro replacement list needs parentheses. | CERT PRE02-C
M | array.h: 266 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 279 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | array.h: 279 | Macro replacement list needs parentheses. | CERT PRE02-C
M | ioloop.h: 50 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | ioloop.h: 50 | Macro replacement list needs parentheses. | CERT PRE02-C
M | ioloop.h: 56 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | ioloop.h: 75 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | ioloop.h: 75 | Macro replacement list needs parentheses. | CERT PRE02-C

Code | File: Src Line | Violation | Standard
--- | --- | --- | ---
M | ostream.h: 61 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | ostream.h: 61 | Macro replacement list needs parentheses. | CERT PRE02-C
M | mail-cache-private.h: 42 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mail-index-transaction-private.h: 103 | Global not initialised at declaration. : hook_mail_index_transaction_created | CERT EXP33-C
M | mail-cache-fields.c: 15 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | module-context.h: 45 | Macro replacement list needs parentheses. | CERT PRE02-C
M | module-context.h: 48 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | module-context.h: 62 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | module-context.h: 62 | Macro replacement list needs parentheses. | CERT PRE02-C
M | module-context.h: 66 | Macro replacement list needs parentheses. | CERT PRE02-C
M | module-context.h: 70 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | module-context.h: 70 | Macro replacement list needs parentheses. | CERT PRE02-C
M | module-context.h: 89 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | module-context.h: 89 | Macro replacement list needs parentheses. | CERT PRE02-C
M | module-context.h: 98 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | module-context.h: 98 | Macro replacement list needs parentheses. | CERT PRE02-C
M | module-context.h: 100 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | module-context.h: 100 | Macro replacement list needs parentheses. | CERT PRE02-C
M | module-context.h: 103 | Macro replacement list needs parentheses. | CERT PRE02-C
M | mail-cache-transaction.c: 20 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mail-cache-transaction.c: 20 | Macro replacement list needs parentheses. | CERT PRE02-C
M | mail-index-alloc-cache.c: 11 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mail-index-alloc-cache.c: 11 | Macro replacement list needs parentheses. | CERT PRE02-C
M | mail-index-fsck.c: 22 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mail-index-fsck.c: 22 | Macro replacement list needs parentheses. | CERT PRE02-C
M | bsearch-insert-pos.h: 5 | Macro replacement list needs parentheses. | CERT PRE02-C
M | bsearch-insert-pos.h: 34 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | istream.h: 53 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | istream.h: 53 | Macro replacement list needs parentheses. | CERT PRE02-C
M | mail-index-strmap.c: 87 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mailbox-list-index-private.h: 80 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | mailbox-list-index-private.h: 82 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | test-common.h: 11 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | test-common.h: 11 | Macro replacement list needs parentheses. | CERT PRE02-C
M | test-mail-index-transaction-finish.c: 12 | Global not initialised at declaration. : recs | CERT EXP33-C
M | test-mail-index-transaction-finish.c: 13 | Global not initialised at declaration. : modseqs | CERT EXP33-C
M | test-mail-index-transaction-update.c: 11 | Global not initialised at declaration. : hdr | CERT EXP33-C
M | test-mail-index-transaction-update.c: 12 | Global not initialised at declaration. : rec | CERT EXP33-C
M | test-mail-transaction-log-view.c: 9 | Global not initialised at declaration. : log | CERT EXP33-C
M | test-mail-transaction-log-view.c: 10 | Global not initialised at declaration. : view | CERT EXP33-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

array_create_i (93 to 101 array.h analysed in mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 100 | Pointer not checked for null before use : buffer | CERT EXP08-C,EXP34-C
| 99 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

array_append_space_i (219 to 227 array.h analysed in mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 222 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_merge_bitmask (27 to 43 mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 35 | Pointer not checked for null before use : pos | CERT EXP08-C,EXP34-C
| 34 |  |
M | 42 | Pointer not checked for null before use : dest | CERT EXP08-C,EXP34-C
| 40 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_compress_field (45 to 95 mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 62 | Pointer not checked for null before use : field_seen | CERT EXP08-C,EXP34-C
| 60 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

get_next_file_seq (97 to 110 mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 104 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 103 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_compress_get_fields (112 to 150 mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 129 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 127 |  |
M | 129 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 143 | Pointer not checked for null before use : field | CERT EXP08-C,EXP34-C
| 142 |  |
M | 127 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 409) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_copy (152 to 310 mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 171 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 170 |  |
M | 179 | Pointer not checked for null before use : output | CERT EXP08-C,EXP34-C
| 172 |  |
M | 187 | Pointer not checked for null before use : ctx.bitmask_pos | CERT EXP08-C,EXP34-C
| 181 |  |
M | 192 | Pointer not checked for null before use : idx_hdr | CERT EXP08-C,EXP34-C
| 191 |  |
M | 184 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 409) |  |
M | 273 | Pointer not checked for null before use : ctx.field_file_map | CERT EXP08-C,EXP34-C
| 199 |  |
M | 255 | Pointer not checked for null before use : ctx.bitmask_pos.v_modifiable | CERT EXP08-C,EXP34-C
| 181 |  |
M | 255 | Pointer not checked for null before use : ctx.bitmask_pos.v | CERT EXP08-C,EXP34-C
| 181 |  |
M | 255 | Pointer not checked for null before use : ctx.bitmask_pos.arr | CERT EXP08-C,EXP34-C
| 181 |  |
M | 255 | Pointer not checked for null before use : ctx.bitmask_pos.arr.element_size | CERT EXP08-C,EXP34-C
| 181 |  |
M | 255 | Pointer not checked for null before use : ctx.bitmask_pos.arr.buffer | CERT EXP08-C,EXP34-C
| 181 |  |
M | 278 | Pointer not checked for null before use : ctx.field_seen | CERT EXP08-C,EXP34-C
| 184 |  |
M | 242 | Pointer not checked for null before use : ctx.buffer | CERT EXP08-C,EXP34-C
| 183 |  |
M | 273 | Pointer not checked for null before use : ctx.cache | CERT EXP08-C,EXP34-C
| 182 |  |
M | 283 | Pointer not checked for null before use : cache_view | CERT EXP08-C,EXP34-C
| 171 |  |
M | 253 | Pointer not checked for null before use : cache_view | CERT EXP08-C,EXP34-C
| 171 |  |
M | 254 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 253 |  |
M | 287 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 283 |  |
M | 302 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 283 |  |
M | 273 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 254 |  |
M | 310 | Memory not freed after last reference. : cache_view | CERT MEM00-C
M | 159 | Procedure contains UR data flow anomalies. : field.data | CERT EXP33-C
| 254 |  |
M | 159 | Procedure contains UR data flow anomalies. : field.field_idx | CERT EXP33-C
| 254 |  |
M | 159 | Procedure contains UR data flow anomalies. : field.size | CERT EXP33-C
| 254 |  |
M | 158 | Procedure contains UR data flow anomalies. : iter.appends_checked | CERT EXP33-C
| 254 |  |
M | 158 | Procedure contains UR data flow anomalies. : iter.failed | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
| 254 |  |
M | 158 | Procedure contains UR data flow anomalies. : iter.stop | CERT EXP33-C
| 254 |  |
M | 160 | Declaration types do not match across a system. : view | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-compress.c | 159 | mail-cache-compress.c | 254 | field.data
mail-cache-compress.c | 159 | mail-cache-compress.c | 254 | field.field_idx
mail-cache-compress.c | 159 | mail-cache-compress.c | 254 | field.size
mail-cache-compress.c | 158 | mail-cache-compress.c | 254 | iter.appends_checked
mail-cache-compress.c | 158 | mail-cache-compress.c | 254 | iter.failed
mail-cache-compress.c | 158 | mail-cache-compress.c | 254 | iter.stop

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_compress_has_file_changed (312 to 344 mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 338 | Local structure returned in function result : hdr |
M | 314 | Procedure contains UR data flow anomalies. : hdr.compat_sizeof_uoff_t | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.continued_record_count | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.deleted_space | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.field_header_offset | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.file_seq | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.hole_offset | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.indexid | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.unused | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.used_file_size | CERT EXP33-C
| 328 |  |
M | 314 | Procedure contains UR data flow anomalies. : hdr.version | CERT EXP33-C
| 328 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.compat_sizeof_uoff_t
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.continued_record_count
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.deleted_space
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.field_header_offset
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.file_seq
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.hole_offset
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.indexid
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.unused
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.used_file_size
mail-cache-compress.c | 314 | mail-cache-compress.c | 328 | hdr.version

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_compress_locked (346 to 450 mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 436 | User input not checked before use. : st | CERT FIO30-C
| 402 |  |
M | 387 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 383 |  |
M | 390 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 374 |  |
M | 396 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 393 |  |
M | 434 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 430 |  |
M | 443 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 434 |  |
M | 445 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 443 |  |
M | 374 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 360 |  |
M | 403 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 393 |  |
M | 393 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 390 |  |
M | 350 | Procedure contains UR data flow anomalies. : dotlock | CERT EXP33-C
| 383 |  |
M | 354 | Procedure contains UR data flow anomalies. : ext_offsets.arr.buffer | CERT EXP33-C
| 393 |  |
M | 354 | Procedure contains UR data flow anomalies. : ext_offsets.arr.element_size | CERT EXP33-C
| 393 |  |
M | 353 | Procedure contains UR data flow anomalies. : file_seq | CERT EXP33-C
| 419 |  |
M | 353 | Procedure contains UR data flow anomalies. : old_offset | CERT EXP33-C
| 423 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-compress.c | 350 | mail-cache-compress.c | 383 | dotlock
mail-cache-compress.c | 354 | mail-cache-compress.c | 393 | ext_offsets.arr.buffer
mail-cache-compress.c | 354 | mail-cache-compress.c | 393 | ext_offsets.arr.element_size
mail-cache-compress.c | 353 | mail-cache-compress.c | 419 | file_seq
mail-cache-compress.c | 353 | mail-cache-compress.c | 423 | old_offset

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_compress (452 to 492 mail-cache-compress.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 488 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 485 |  |
M | 485 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 472 |  |
M | 488 | Pointer not checked for null before use : cache.need_compress_file_seq | CERT EXP08-C,EXP34-C
| 485 |  |
M | 488 | Pointer not checked for null before use : cache.st_ino | CERT EXP08-C,EXP34-C
| 485 |  |
M | 488 | Pointer not checked for null before use : cache.st_dev | CERT EXP08-C,EXP34-C
| 485 |  |
M | 488 | Pointer not checked for null before use : cache.data | CERT EXP08-C,EXP34-C
| 485 |  |
M | 488 | Pointer not checked for null before use : cache.last_field_header_offset | CERT EXP08-C,EXP34-C
| 485 |  |
M | 488 | Pointer not checked for null before use : cache.file_fields_count | CERT EXP08-C,EXP34-C
| 485 |  |
M | 488 | Pointer not checked for null before use : cache.file_field_map | CERT EXP08-C,EXP34-C
| 485 |  |
M | 488 | Pointer not checked for null before use : cache.fields_count | CERT EXP08-C,EXP34-C
| 485 |  |
M | 488 | Pointer not checked for null before use : cache.field_file_map | CERT EXP08-C,EXP34-C
| 485 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_decision_state_update (73 to 117 mail-cache-decisions.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 101 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 83 |  |
M | 78 | Procedure contains UR data flow anomalies. : uid | CERT EXP33-C
| 82 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-decisions.c | 78 | mail-cache-decisions.c | 82 | uid

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_decision_add (119 to 143 mail-cache-decisions.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 123 | Procedure contains UR data flow anomalies. : uid | CERT EXP33-C
| 141 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-decisions.c | 123 | mail-cache-decisions.c | 141 | uid

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_register_fields (68 to 142 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 132 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 130 |  |
M | 73 | Procedure contains UR data flow anomalies. : orig_key | CERT EXP33-C
| 80 |  |
M | 73 | Procedure contains UR data flow anomalies. : orig_value | CERT EXP33-C
| 80 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-fields.c | 73 | mail-cache-fields.c | 80 | orig_key
mail-cache-fields.c | 73 | mail-cache-fields.c | 80 | orig_value

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_register_lookup (144 to 154 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 147 | Procedure contains UR data flow anomalies. : orig_key | CERT EXP33-C
| 149 |  |
M | 147 | Procedure contains UR data flow anomalies. : orig_value | CERT EXP33-C
| 149 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-fields.c | 147 | mail-cache-fields.c | 149 | orig_key
mail-cache-fields.c | 147 | mail-cache-fields.c | 149 | orig_value

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_register_get_list (156 to 175 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 170 | Pointer not checked for null before use : list | CERT EXP08-C,EXP34-C
| 169 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_header_fields_get_offset (177 to 263 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 235 | Pointer not checked for null before use : field_hdr | CERT EXP08-C,EXP34-C
| 216 |  |
M | 211 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 207 |  |
M | 241 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 207 |  |
M | 180 | Procedure contains UR data flow anomalies. : field_hdr | CERT EXP33-C
| 254 |  |
M | 181 | Procedure contains UR data flow anomalies. : tmp_field_hdr.fields_count | CERT EXP33-C
| 221 |  |
M | 181 | Procedure contains UR data flow anomalies. : tmp_field_hdr.next_offset | CERT EXP33-C
| 221 |  |
M | 181 | Procedure contains UR data flow anomalies. : tmp_field_hdr.size | CERT EXP33-C
| 221 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-fields.c | 180 | mail-cache-fields.c | 254 | field_hdr
mail-cache-fields.c | 181 | mail-cache-fields.c | 221 | tmp_field_hdr.fields_count
mail-cache-fields.c | 181 | mail-cache-fields.c | 221 | tmp_field_hdr.next_offset
mail-cache-fields.c | 181 | mail-cache-fields.c | 221 | tmp_field_hdr.size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_header_fields_read (265 to 398 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 287 | Pointer not checked for null before use : field_hdr | CERT EXP08-C,EXP34-C
| 286 |  |
M | 302 | Pointer not checked for null before use : field_hdr | CERT EXP08-C,EXP34-C
| 301 |  |
M | 368 | Pointer not checked for null before use : field.name | CERT EXP08-C,EXP34-C
| 364 |  |
M | 366 | Pointer not checked for null before use : sizes | CERT EXP08-C,EXP34-C
| 316 |  |
M | 335 | Pointer not checked for null before use : names | CERT EXP08-C,EXP34-C
| 395 |  |
M | 372 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 368 |  |
M | 288 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 278 |  |
M | 337 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 311 |  |
M | 337 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 276 | Procedure contains UR data flow anomalies. : offset | CERT EXP33-C
| 281 |  |
M | 272 | Procedure contains UR data flow anomalies. : orig_key | CERT EXP33-C
| 352 |  |
M | 272 | Procedure contains UR data flow anomalies. : orig_value | CERT EXP33-C
| 352 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-fields.c | 276 | mail-cache-fields.c | 281 | offset
mail-cache-fields.c | 276 | mail-cache-fields.c | 286 | offset
mail-cache-fields.c | 272 | mail-cache-fields.c | 352 | orig_key
mail-cache-fields.c | 272 | mail-cache-fields.c | 352 | orig_value

[ | Top of Report | | | Procedure Table | | | Contents | ]

copy_to_buf (400 to 422 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 410 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 409 |  |
M | 419 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 418 |  |
M | 403 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

copy_to_buf_byte (424 to 449 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 435 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 434 |  |
M | 445 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 444 |  |
M | 427 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_header_fields_update_locked (451 to 486 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 463 | Pointer not checked for null before use : buffer | CERT EXP08-C,EXP34-C
| 461 |  |
M | 466 | Pointer not checked for null before use : buffer | CERT EXP08-C,EXP34-C
| 461 |  |
M | 458 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 457 |  |
M | 475 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 466 |  |
M | 466 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 458 |  |
M | 463 | Pointer not checked for null before use : cache.file_field_map | CERT EXP08-C,EXP34-C
| 457 |  |
M | 463 | Pointer not checked for null before use : cache.field_file_map | CERT EXP08-C,EXP34-C
| 457 |  |
M | 454 | Procedure contains UR data flow anomalies. : offset | CERT EXP33-C
| 466 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-fields.c | 454 | mail-cache-fields.c | 466 | offset

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_header_fields_update (488 to 508 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 503 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 499 |  |
M | 505 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 503 |  |
M | 505 | Pointer not checked for null before use : cache.file_fields_count | CERT EXP08-C,EXP34-C
| 503 |  |
M | 505 | Pointer not checked for null before use : cache.file_field_map | CERT EXP08-C,EXP34-C
| 503 |  |
M | 505 | Pointer not checked for null before use : cache.fields_count | CERT EXP08-C,EXP34-C
| 503 |  |
M | 505 | Pointer not checked for null before use : cache.field_file_map | CERT EXP08-C,EXP34-C
| 503 |  |
M | 505 | Pointer not checked for null before use : cache.last_field_header_offset | CERT EXP08-C,EXP34-C
| 503 |  |
M | 505 | Pointer not checked for null before use : cache.need_compress_file_seq | CERT EXP08-C,EXP34-C
| 503 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_header_fields_get (510 to 559 mail-cache-fields.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 544 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 543 |  |
M | 550 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 549 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_get_record (13 to 55 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 36 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 34 |  |
M | 47 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 44 |  |
M | 31 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 27 |  |
M | 49 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 42 |  |
M | 42 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 27 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lookup_cur_offset (57 to 78 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 65 | Pointer not checked for null before use : cache | CERT EXP08-C,EXP34-C
| 60 |  |
M | 65 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 62 | Procedure contains UR data flow anomalies. : data | CERT EXP33-C
| 65 |  |
M | 62 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-lookup.c | 62 | mail-cache-lookup.c | 65 | data

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lookup_offset (80 to 112 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 84 | Procedure contains UR data flow anomalies. : reset_id | CERT EXP33-C
| 87 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-lookup.c | 84 | mail-cache-lookup.c | 87 | reset_id
mail-cache-lookup.c | 84 | mail-cache-lookup.c | 95 | reset_id

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lookup_iter_init (139 to 164 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 163 | Sizeof argument is a pointer. | CERT EXP01-C
M | 149 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 148 |  |
M | 154 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 146 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lookup_iter_next_record (166 to 205 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 188 | Sizeof argument is a pointer. | CERT EXP01-C
M | 196 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 192 |  |
M | 192 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 182 |  |
M | 169 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lookup_iter_next (207 to 277 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 249 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 237 |  |
M | 237 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 225 |  |
M | 265 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 249 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_seq (279 to 298 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 293 | Pointer not checked for null before use : iter.view | CERT EXP08-C,EXP34-C
| 292 |  |
M | 293 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 292 |  |
M | 282 | Procedure contains UR data flow anomalies. : field.field_idx | CERT EXP33-C
| 294 |  |
M | 281 | Procedure contains UR data flow anomalies. : iter.appends_checked | CERT EXP33-C
| 293 |  |
M | 281 | Procedure contains UR data flow anomalies. : iter.failed | CERT EXP33-C
| 293 |  |
M | 281 | Procedure contains UR data flow anomalies. : iter.offset | CERT EXP33-C
| 293 |  |
M | 281 | Procedure contains UR data flow anomalies. : iter.pos | CERT EXP33-C
| 293 |  |
M | 281 | Procedure contains UR data flow anomalies. : iter.rec | CERT EXP33-C
| 293 |  |
M | 281 | Procedure contains UR data flow anomalies. : iter.rec_size | CERT EXP33-C
| 293 |  |
M | 281 | Procedure contains UR data flow anomalies. : iter.stop | CERT EXP33-C
| 293 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-lookup.c | 282 | mail-cache-lookup.c | 294 | field.field_idx
mail-cache-lookup.c | 281 | mail-cache-lookup.c | 293 | iter.appends_checked
mail-cache-lookup.c | 281 | mail-cache-lookup.c | 293 | iter.failed
mail-cache-lookup.c | 281 | mail-cache-lookup.c | 293 | iter.offset
mail-cache-lookup.c | 281 | mail-cache-lookup.c | 293 | iter.pos
mail-cache-lookup.c | 281 | mail-cache-lookup.c | 293 | iter.rec
mail-cache-lookup.c | 281 | mail-cache-lookup.c | 293 | iter.rec_size
mail-cache-lookup.c | 281 | mail-cache-lookup.c | 293 | iter.stop

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_field_exists (307 to 329 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 322 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 315 |  |
M | 310 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lookup_bitmask (339 to 366 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 359 | Pointer not checked for null before use : field.data | CERT EXP08-C,EXP34-C
| 354 |  |
M | 362 | Pointer not checked for null before use : src | CERT EXP08-C,EXP34-C
| 359 |  |
M | 362 | Pointer not checked for null before use : dest | CERT EXP08-C,EXP34-C
| 360 |  |
M | 344 | Procedure contains UR data flow anomalies. : field.data | CERT EXP33-C
| 359 |  |
M | 344 | Procedure contains UR data flow anomalies. : field.field_idx | CERT EXP33-C
| 355 |  |
M | 344 | Procedure contains UR data flow anomalies. : field.size | CERT EXP33-C
| 360 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-lookup.c | 344 | mail-cache-lookup.c | 359 | field.data
mail-cache-lookup.c | 344 | mail-cache-lookup.c | 355 | field.field_idx
mail-cache-lookup.c | 344 | mail-cache-lookup.c | 360 | field.size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lookup_field (368 to 399 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 385 | Pointer not checked for null before use : iter.view | CERT EXP08-C,EXP34-C
| 382 |  |
M | 392 | Pointer not checked for null before use : iter.view | CERT EXP08-C,EXP34-C
| 382 |  |
M | 394 | Pointer not checked for null before use : field.data | CERT EXP08-C,EXP34-C
| 392 |  |
M | 382 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 376 |  |
M | 385 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 382 |  |
M | 392 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 382 |  |
M | 373 | Procedure contains UR data flow anomalies. : field.data | CERT EXP33-C
| 394 |  |
M | 373 | Procedure contains UR data flow anomalies. : field.field_idx | CERT EXP33-C
| 393 |  |
M | 373 | Procedure contains UR data flow anomalies. : field.size | CERT EXP33-C
| 394 |  |
M | 372 | Procedure contains UR data flow anomalies. : iter.appends_checked | CERT EXP33-C
| 392 |  |
M | 372 | Procedure contains UR data flow anomalies. : iter.failed | CERT EXP33-C
| 392 |  |
M | 372 | Procedure contains UR data flow anomalies. : iter.offset | CERT EXP33-C
| 392 |  |
M | 372 | Procedure contains UR data flow anomalies. : iter.pos | CERT EXP33-C
| 392 |  |
M | 372 | Procedure contains UR data flow anomalies. : iter.rec | CERT EXP33-C
| 392 |  |
M | 372 | Procedure contains UR data flow anomalies. : iter.rec_size | CERT EXP33-C
| 392 |  |
M | 372 | Procedure contains UR data flow anomalies. : iter.stop | CERT EXP33-C
| 392 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-lookup.c | 373 | mail-cache-lookup.c | 394 | field.data
mail-cache-lookup.c | 373 | mail-cache-lookup.c | 393 | field.field_idx
mail-cache-lookup.c | 373 | mail-cache-lookup.c | 394 | field.size
mail-cache-lookup.c | 372 | mail-cache-lookup.c | 392 | iter.appends_checked
mail-cache-lookup.c | 372 | mail-cache-lookup.c | 392 | iter.failed
mail-cache-lookup.c | 372 | mail-cache-lookup.c | 392 | iter.offset
mail-cache-lookup.c | 372 | mail-cache-lookup.c | 392 | iter.pos
mail-cache-lookup.c | 372 | mail-cache-lookup.c | 392 | iter.rec
mail-cache-lookup.c | 372 | mail-cache-lookup.c | 392 | iter.rec_size
mail-cache-lookup.c | 372 | mail-cache-lookup.c | 392 | iter.stop

[ | Top of Report | | | Procedure Table | | | Contents | ]

header_lines_save (422 to 449 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 440 | Pointer not checked for null before use : hdr_data | CERT EXP08-C,EXP34-C
| 439 |  |
M | 447 | Pointer not checked for null before use : hdr_line.data | CERT EXP08-C,EXP34-C
| 446 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lookup_headers_real (457 to 551 mail-cache-lookup.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 502 | Pointer not checked for null before use : ctx.lines | CERT EXP08-C,EXP34-C
| 500 |  |
M | 532 | Pointer not checked for null before use : start | CERT EXP08-C,EXP34-C
| 531 |  |
M | 505 | Pointer not checked for null before use : iter.view | CERT EXP08-C,EXP34-C
| 504 |  |
M | 511 | Pointer not checked for null before use : field.data | CERT EXP08-C,EXP34-C
| 505 |  |
M | 511 | Pointer not checked for null before use : ctx.lines.v_modifiable | CERT EXP08-C,EXP34-C
| 500 |  |
M | 511 | Pointer not checked for null before use : ctx.lines.v | CERT EXP08-C,EXP34-C
| 500 |  |
M | 511 | Pointer not checked for null before use : ctx.lines.arr | CERT EXP08-C,EXP34-C
| 500 |  |
M | 511 | Pointer not checked for null before use : ctx.lines.arr.element_size | CERT EXP08-C,EXP34-C
| 500 |  |
M | 511 | Pointer not checked for null before use : ctx.lines.arr.buffer | CERT EXP08-C,EXP34-C
| 500 |  |
M | 511 | Pointer not checked for null before use : ctx.view | CERT EXP08-C,EXP34-C
| 500 |  |
M | 531 | Pointer not checked for null before use : lines | CERT EXP08-C,EXP34-C
| 527 |  |
M | 542 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 538 |  |
M | 497 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 487 |  |
M | 505 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 504 |  |
M | 504 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 479 |  |
M | 526 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 502 |  |
M | 526 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 502 |  |
M | 464 | Procedure contains UR data flow anomalies. : field.data | CERT EXP33-C
| 511 |  |
M | 464 | Procedure contains UR data flow anomalies. : field.field_idx | CERT EXP33-C
| 506 |  |
M | 464 | Procedure contains UR data flow anomalies. : field.size | CERT EXP33-C
| 511 |  |
M | 463 | Procedure contains UR data flow anomalies. : iter.appends_checked | CERT EXP33-C
| 505 |  |
M | 463 | Procedure contains UR data flow anomalies. : iter.failed | CERT EXP33-C
| 505 |  |
M | 463 | Procedure contains UR data flow anomalies. : iter.offset | CERT EXP33-C
| 505 |  |
M | 463 | Procedure contains UR data flow anomalies. : iter.pos | CERT EXP33-C
| 505 |  |
M | 463 | Procedure contains UR data flow anomalies. : iter.rec | CERT EXP33-C
| 505 |  |

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 463 | Procedure contains UR data flow anomalies. : iter.rec_size | CERT EXP33-C
| 505 |  |
M | 463 | Procedure contains UR data flow anomalies. : iter.stop | CERT EXP33-C
| 505 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-lookup.c | 464 | mail-cache-lookup.c | 511 | field.data
mail-cache-lookup.c | 464 | mail-cache-lookup.c | 506 | field.field_idx
mail-cache-lookup.c | 464 | mail-cache-lookup.c | 511 | field.size
mail-cache-lookup.c | 463 | mail-cache-lookup.c | 505 | iter.appends_checked
mail-cache-lookup.c | 463 | mail-cache-lookup.c | 505 | iter.failed
mail-cache-lookup.c | 463 | mail-cache-lookup.c | 505 | iter.offset
mail-cache-lookup.c | 463 | mail-cache-lookup.c | 505 | iter.pos
mail-cache-lookup.c | 463 | mail-cache-lookup.c | 505 | iter.rec
mail-cache-lookup.c | 463 | mail-cache-lookup.c | 505 | iter.rec_size
mail-cache-lookup.c | 463 | mail-cache-lookup.c | 505 | iter.stop

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_handler_deinit (17 to 26 mail-cache-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 25 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 24 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_handler_init (28 to 40 mail-cache-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 39 | Local structure returned in function result : ctx |
M | 36 | Pointer not checked for null before use : context | CERT EXP08-C,EXP34-C
| 35 |  |
M | 37 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 36 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_expunge_handler (75 to 106 mail-cache-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 104 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 95 |  |
M | 95 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 94 |  |
M | 82 | Procedure contains UR data flow anomalies. : cache_file_seq | CERT EXP33-C
| 103 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-sync-update.c | 82 | mail-cache-sync-update.c | 103 | cache_file_seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_sync_handler (108 to 180 mail-cache-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 132 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 129 |  |
M | 176 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 164 |  |
M | 119 | Procedure contains UR data flow anomalies. : cache_file_seq | CERT EXP33-C
| 171 |  |
M | 113 | Declaration types do not match across a system. : view | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-sync-update.c | 119 | mail-cache-sync-update.c | 171 | cache_file_seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_cache_reset (60 to 67 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 63 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 62 |  |
M | 62 | Pointer not checked for null before use : cache_mail_index_transaction_module.id.module_id_register | CERT EXP08-C,EXP34-C
| 52 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_cache_commit (69 to 78 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 74 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 73 |  |
M | 73 | Pointer not checked for null before use : cache_mail_index_transaction_module.id.module_id_register | CERT EXP08-C,EXP34-C
| 52 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_cache_rollback (80 to 88 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 84 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 83 |  |
M | 83 | Pointer not checked for null before use : cache_mail_index_transaction_module.id.module_id_register | CERT EXP08-C,EXP34-C
| 52 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_get_transaction (90 to 119 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 118 | Local structure returned in function result : ctx |
M | 103 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 102 |  |
M | 117 | Pointer not checked for null before use : _module_tmp | CERT EXP08-C,EXP34-C
| 117 |  |
M | 97 | Pointer not checked for null before use : cache_mail_index_transaction_module.id.module_id_register | CERT EXP08-C,EXP34-C
| 52 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_compress (164 to 189 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 181 | Pointer not checked for null before use : trans | CERT EXP08-C,EXP34-C
| 178 |  |
M | 184 | Pointer not checked for null before use : trans | CERT EXP08-C,EXP34-C
| 178 |  |
M | 187 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 180 |  |
M | 178 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 177 |  |
M | 180 | Pointer not checked for null before use : trans | CERT EXP08-C,EXP34-C
| 178 |  |
M | 168 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_open_if_needed (191 to 244 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 241 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 224 |  |
M | 224 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 241 |  |
M | 217 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 216 |  |
M | 196 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 216 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-transaction.c | 196 | mail-cache-transaction.c | 216 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_lock (246 to 278 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 274 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 272 |  |
M | 258 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 253 |  |
M | 272 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 253 |  |
M | 253 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 251 |  |
M | 260 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 258 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_unlink_hole (309 to 353 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 313 | Procedure contains UR data flow anomalies. : hole.magic | CERT EXP33-C
| 325 |  |
M | 313 | Procedure contains UR data flow anomalies. : hole.next_offset | CERT EXP33-C
| 343 |  |
M | 313 | Procedure contains UR data flow anomalies. : hole.size | CERT EXP33-C
| 331 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-transaction.c | 313 | mail-cache-transaction.c | 325 | hole.magic
mail-cache-transaction.c | 313 | mail-cache-transaction.c | 343 | hole.next_offset
mail-cache-transaction.c | 313 | mail-cache-transaction.c | 331 | hole.size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_reserve_more (398 to 468 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 423 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 410 |  |
M | 404 | Procedure contains UR data flow anomalies. : hole.next_offset | CERT EXP33-C
| 412 |  |
M | 404 | Procedure contains UR data flow anomalies. : hole.size | CERT EXP33-C
| 412 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-transaction.c | 404 | mail-cache-transaction.c | 412 | hole.next_offset
mail-cache-transaction.c | 404 | mail-cache-transaction.c | 412 | hole.size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_free_reservations (499 to 522 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 517 | Pointer not checked for null before use : reservations | CERT EXP08-C,EXP34-C
| 511 |  |
M | 521 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 517 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_free_space (524 to 551 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 547 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 540 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_get_space (553 to 610 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 577 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 574 |  |
M | 574 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 571 |  |
M | 604 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 574 |  |
M | 604 | Pointer not checked for null before use : ctx.tried_compression | CERT EXP08-C,EXP34-C
| 571 |  |
M | 574 | Pointer not checked for null before use : ctx.last_grow_size | CERT EXP08-C,EXP34-C
| 571 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_update_index (612 to 661 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 644 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 654 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 655 |  |
M | 627 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 636 |  |
M | 620 | Procedure contains UR data flow anomalies. : old_offset | CERT EXP33-C
| 627 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-transaction.c | 620 | mail-cache-transaction.c | 627 | old_offset

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_flush (663 to 746 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 699 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 733 |  |
M | 726 | Pointer not checked for null before use : seq | CERT EXP08-C,EXP34-C
| 693 |  |
M | 726 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 723 |  |
M | 699 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 726 |  |
M | 723 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 699 |  |
M | 671 | Procedure contains UR data flow anomalies. : seq_count | CERT EXP33-C
| 718 |  |
M | 670 | Procedure contains UR data flow anomalies. : size | CERT EXP33-C
| 690 |  |
M | 669 | Procedure contains UR data flow anomalies. : write_offset | CERT EXP33-C
| 723 |  |
M | 669 | Procedure contains UR data flow anomalies. : write_size | CERT EXP33-C
| 732 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-transaction.c | 671 | mail-cache-transaction.c | 718 | seq_count
mail-cache-transaction.c | 670 | mail-cache-transaction.c | 690 | size
mail-cache-transaction.c | 669 | mail-cache-transaction.c | 723 | write_offset
mail-cache-transaction.c | 669 | mail-cache-transaction.c | 732 | write_size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_switch_seq (748 to 781 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 758 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 757 |  |
M | 759 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 758 |  |
M | 753 | Procedure contains UR data flow anomalies. : size | CERT EXP33-C
| 757 |  |
M | 752 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-transaction.c | 753 | mail-cache-transaction.c | 757 | size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_commit (783 to 814 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 802 | Pointer not checked for null before use : ctx.tried_compression | CERT EXP08-C,EXP34-C
| 794 |  |
M | 802 | Pointer not checked for null before use : ctx.prev_pos | CERT EXP08-C,EXP34-C
| 800 |  |
M | 802 | Pointer not checked for null before use : ctx.reserved_space_offset | CERT EXP08-C,EXP34-C
| 794 |  |
M | 802 | Pointer not checked for null before use : ctx.reserved_space | CERT EXP08-C,EXP34-C
| 794 |  |
M | 802 | Pointer not checked for null before use : ctx.last_grow_size | CERT EXP08-C,EXP34-C
| 794 |  |
M | 810 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 802 |  |
M | 812 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 810 |  |
M | 802 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 794 |  |
M | 795 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 794 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_transaction_rollback (816 to 822 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 821 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 820 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_header_fields_write (824 to 866 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 836 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 832 |  |
M | 855 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 845 |  |
M | 845 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 836 |  |
M | 832 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 830 | Procedure contains UR data flow anomalies. : hdr_offset | CERT EXP33-C
| 845 |  |
M | 830 | Procedure contains UR data flow anomalies. : offset | CERT EXP33-C
| 836 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache-transaction.c | 830 | mail-cache-transaction.c | 845 | hdr_offset
mail-cache-transaction.c | 830 | mail-cache-transaction.c | 836 | offset

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_header_add_field (882 to 939 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 904 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 888 |  |
M | 905 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 904 |  |
M | 927 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 921 |  |
M | 936 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 930 |  |
M | 921 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 904 |  |
M | 899 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 888 |  |
M | 899 | Pointer not checked for null before use : ctx.tried_compression | CERT EXP08-C,EXP34-C
| 888 |  |
M | 921 | Pointer not checked for null before use : ctx.tried_compression | CERT EXP08-C,EXP34-C
| 888 |  |
M | 921 | Pointer not checked for null before use : ctx.cache_file_seq | CERT EXP08-C,EXP34-C
| 888 |  |
M | 921 | Pointer not checked for null before use : ctx.reserved_space_offset | CERT EXP08-C,EXP34-C
| 888 |  |
M | 921 | Pointer not checked for null before use : ctx.reserved_space | CERT EXP08-C,EXP34-C
| 888 |  |
M | 921 | Pointer not checked for null before use : ctx.last_grow_size | CERT EXP08-C,EXP34-C
| 888 |  |
M | 920 | Pointer not checked for null before use : buffer | CERT EXP08-C,EXP34-C
| 919 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_add (941 to 1034 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1020 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1016 |  |
M | 970 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 957 |  |
M | 991 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 970 |  |
M | 1016 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 970 |  |
M | 970 | Pointer not checked for null before use : ctx.tried_compression | CERT EXP08-C,EXP34-C
| 957 |  |
M | 1016 | Pointer not checked for null before use : ctx.tried_compression | CERT EXP08-C,EXP34-C
| 970 |  |
M | 970 | Pointer not checked for null before use : ctx.reserved_space_offset | CERT EXP08-C,EXP34-C
| 957 |  |
M | 1016 | Pointer not checked for null before use : ctx.reserved_space_offset | CERT EXP08-C,EXP34-C
| 970 |  |
M | 970 | Pointer not checked for null before use : ctx.reserved_space | CERT EXP08-C,EXP34-C
| 957 |  |
M | 1016 | Pointer not checked for null before use : ctx.reserved_space | CERT EXP08-C,EXP34-C
| 970 |  |
M | 970 | Pointer not checked for null before use : ctx.last_grow_size | CERT EXP08-C,EXP34-C
| 957 |  |
M | 1016 | Pointer not checked for null before use : ctx.last_grow_size | CERT EXP08-C,EXP34-C
| 970 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_field_want_add (1036 to 1063 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1062 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1041 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_field_can_add (1065 to 1077 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1076 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1070 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_link (1087 to 1127 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1116 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 1115 |  |
M | 1110 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1107 |  |
M | 1121 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1107 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_delete_real (1129 to 1155 mail-cache-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1146 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1144 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_file_close (47 to 72 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 69 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 51 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_init_file_cache (74 to 90 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 84 | User input not checked before use. : st | CERT FIO30-C
| 83 |  |
M | 88 | User input not checked before use. : st | CERT FIO30-C
| 83 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_reopen (140 to 187 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 166 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 164 |  |
M | 173 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 172 |  |
M | 152 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 147 |  |
M | 169 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 166 |  |
M | 172 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 169 |  |
M | 164 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 152 |  |
M | 166 | Pointer not checked for null before use : cache.mmap_base | CERT EXP08-C,EXP34-C
| 152 |  |
M | 166 | Pointer not checked for null before use : cache.mmap_length | CERT EXP08-C,EXP34-C
| 152 |  |
M | 142 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_map (264 to 355 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 302 | String function params access same variable. | CERT DCL33-C
M | 302 | Sizeof argument is a pointer. | CERT EXP01-C
M | 343 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 319 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_try_open (357 to 382 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 378 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 376 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_open_and_verify (384 to 397 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 390 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 388 |  |
M | 394 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 390 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_alloc (399 to 442 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 441 | Local structure returned in function result : cache |
M | 404 | Pointer not checked for null before use : cache | CERT EXP08-C,EXP34-C
| 403 |  |
M | 409 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 415) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_create (452 to 462 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 461 | Local structure returned in function result : cache |
M | 458 | Pointer not checked for null before use : cache | CERT EXP08-C,EXP34-C
| 456 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_free (464 to 488 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 483 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 479 |  |
M | 484 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 483 |  |
M | 484 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 485 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 484 |  |
M | 485 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 486 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 485 |  |
M | 486 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 487 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 486 |  |
M | 487 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 487 | Pointer not checked for null before use : (cache)->field_file_map | CERT EXP08-C,EXP34-C
| 483 |  |
M | 487 | Pointer not checked for null before use : (cache)->file_field_map | CERT EXP08-C,EXP34-C
| 484 |  |
M | 487 | Pointer not checked for null before use : (cache)->fields | CERT EXP08-C,EXP34-C
| 485 |  |
M | 487 | Pointer not checked for null before use : (cache)->filepath | CERT EXP08-C,EXP34-C
| 486 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_lock_full (544 to 622 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 563 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 556 |  |
M | 589 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 584 |  |
M | 612 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 589 |  |
M | 589 | Pointer not checked for null before use : cache.fd | CERT EXP08-C,EXP34-C
| 556 |  |
M | 615 | Pointer not checked for null before use : cache.need_compress_file_seq | CERT EXP08-C,EXP34-C
| 612 |  |
M | 584 | Pointer not checked for null before use : cache.need_compress_file_seq | CERT EXP08-C,EXP34-C
| 556 |  |
M | 615 | Pointer not checked for null before use : cache.st_ino | CERT EXP08-C,EXP34-C
| 584 |  |
M | 584 | Pointer not checked for null before use : cache.st_ino | CERT EXP08-C,EXP34-C
| 556 |  |
M | 615 | Pointer not checked for null before use : cache.st_dev | CERT EXP08-C,EXP34-C
| 584 |  |
M | 584 | Pointer not checked for null before use : cache.st_dev | CERT EXP08-C,EXP34-C
| 556 |  |
M | 615 | Pointer not checked for null before use : cache.remap_counter | CERT EXP08-C,EXP34-C
| 612 |  |
M | 612 | Pointer not checked for null before use : cache.remap_counter | CERT EXP08-C,EXP34-C
| 584 |  |
M | 584 | Pointer not checked for null before use : cache.remap_counter | CERT EXP08-C,EXP34-C
| 556 |  |
M | 615 | Pointer not checked for null before use : cache.data | CERT EXP08-C,EXP34-C
| 612 |  |
M | 602 | Pointer not checked for null before use : cache.data | CERT EXP08-C,EXP34-C
| 556 |  |
M | 612 | Pointer not checked for null before use : cache.mmap_length | CERT EXP08-C,EXP34-C
| 584 |  |
M | 584 | Pointer not checked for null before use : cache.mmap_length | CERT EXP08-C,EXP34-C
| 556 |  |
M | 615 | Pointer not checked for null before use : cache.hdr_ro_copy | CERT EXP08-C,EXP34-C
| 612 |  |
M | 612 | Pointer not checked for null before use : cache.hdr_ro_copy | CERT EXP08-C,EXP34-C
| 602 |  |
M | 584 | Pointer not checked for null before use : cache.hdr_ro_copy | CERT EXP08-C,EXP34-C
| 556 |  |
M | 615 | Pointer not checked for null before use : cache.mmap_base | CERT EXP08-C,EXP34-C
| 612 |  |
M | 612 | Pointer not checked for null before use : cache.mmap_base | CERT EXP08-C,EXP34-C
| 584 |  |
M | 584 | Pointer not checked for null before use : cache.mmap_base | CERT EXP08-C,EXP34-C
| 556 |  |
M | 615 | Pointer not checked for null before use : cache.last_field_header_offset | CERT EXP08-C,EXP34-C
| 602 |  |
M | 602 | Pointer not checked for null before use : cache.last_field_header_offset | CERT EXP08-C,EXP34-C
| 556 |  |

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 602 | Pointer not checked for null before use : cache.last_lock_failed | CERT EXP08-C,EXP34-C
| 589 |  |
M | 615 | Pointer not checked for null before use : cache.last_lock_failed | CERT EXP08-C,EXP34-C
| 589 |  |
M | 615 | Pointer not checked for null before use : cache.hdr_modified | CERT EXP08-C,EXP34-C
| 602 |  |
M | 615 | Pointer not checked for null before use : cache.file_fields_count | CERT EXP08-C,EXP34-C
| 602 |  |
M | 615 | Pointer not checked for null before use : cache.file_field_map | CERT EXP08-C,EXP34-C
| 602 |  |
M | 615 | Pointer not checked for null before use : cache.fields_count | CERT EXP08-C,EXP34-C
| 602 |  |
M | 615 | Pointer not checked for null before use : cache.field_file_map | CERT EXP08-C,EXP34-C
| 602 |  |
M | 564 | Pointer not checked for null before use : iview | CERT EXP08-C,EXP34-C
| 563 |  |
M | 565 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 564 |  |
M | 615 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 612 |  |
M | 602 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 589 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_unlock (634 to 667 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 653 | Sizeof argument is a pointer. | CERT EXP01-C
M | 653 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 641 |  |
M | 662 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 653 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_view_open (687 to 699 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 698 | Local structure returned in function result : view |
M | 693 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 692 |  |
M | 695 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 415) |  |
M | 690 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_view_close (701 to 711 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 705 | Attempt to use already freed object. | CERT MEM31-C
M | 706 | Attempt to use already freed object. | CERT MEM31-C
M | 710 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 707 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_cache_get_first_new_seq (713 to 729 mail-cache.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 719 | Pointer not checked for null before use : idx_hdr | CERT EXP08-C,EXP34-C
| 718 |  |
M | 716 | Procedure contains UR data flow anomalies. : first_new_seq | CERT EXP33-C
| 722 |  |
M | 716 | Procedure contains UR data flow anomalies. : message_count | CERT EXP33-C
| 722 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-cache.c | 716 | mail-cache.c | 722 | first_new_seq
mail-cache.c | 716 | mail-cache.c | 722 | message_count

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_alloc_cache_add (37 to 56 mail-index-alloc-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 55 | Local structure returned in function result : list |
M | 44 | Pointer not checked for null before use : list | CERT EXP08-C,EXP34-C
| 43 |  |
M | 54 | Pointer not checked for null before use : _module_tmp | CERT EXP08-C,EXP34-C
| 54 |  |
M | 43 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 416) |  |
M | 51 | Pointer not checked for null before use : indexes | CERT EXP08-C,EXP34-C
| 34 |  |
M | 54 | Pointer not checked for null before use : mail_index_alloc_cache_index_module.id.module_id_register | CERT EXP08-C,EXP34-C
| 32 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_alloc_cache_list_free (58 to 66 mail-index-alloc-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 64 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 63 |  |
M | 65 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 64 |  |
M | 65 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 65 | Pointer not checked for null before use : (list)->mailbox_path | CERT EXP08-C,EXP34-C
| 64 |  |
M | 63 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 62 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_alloc_cache_find (68 to 118 mail-index-alloc-cache.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 83 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 78 |  |
M | 104 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 78 |  |
M | 77 | Pointer not checked for null before use : indexp | CERT EXP08-C,EXP34-C
| 115 |  |
M | 108 | Attempt to read from freed memory. : rec | CERT MEM30-C
M | 76 | Procedure contains UR data flow anomalies. : match | CERT EXP33-C
| 72 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-alloc-cache.c | 76 | mail-index-alloc-cache.c | 117 | match

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_alloc_cache_get (120 to 152 mail-index-alloc-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 146 | Pointer not checked for null before use : index | CERT EXP08-C,EXP34-C
| 145 |  |
M | 150 | Pointer not checked for null before use : match | CERT EXP08-C,EXP34-C
| 146 |  |
M | 143 | User input not checked before use. : st | CERT FIO30-C
| 130 |  |
M | 145 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 143 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

destroy_unrefed (154 to 175 mail-index-alloc-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 162 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 160 |  |
M | 159 | Pointer not checked for null before use : list | CERT EXP08-C,EXP34-C
| 169 |  |
M | 165 | Attempt to read from freed memory. : rec | CERT MEM30-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_alloc_cache_unref (182 to 210 mail-index-alloc-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 189 | Pointer not checked for null before use : listp | CERT EXP08-C,EXP34-C
| 189 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_alloc_cache_index_opened (217 to 235 mail-index-alloc-cache.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 220 | Pointer not checked for null before use : mail_index_alloc_cache_index_module.id.module_id_register | CERT EXP08-C,EXP34-C
| 32 |  |
M | 227 | User input not checked before use. : st | CERT FIO30-C
| 226 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_dummy_view_open (36 to 47 mail-index-dummy-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 46 | Local structure returned in function result : view |
M | 41 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 40 |  |
M | 40 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 417) |  |
M | 38 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_fsck_log_pos (28 to 53 mail-index-fsck.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 51 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 50 |  |
M | 50 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 47 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_fsck_find_keyword_count (80 to 110 mail-index-fsck.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 93 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 91 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_fsck_keywords (126 to 253 mail-index-fsck.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 146 | Pointer not checked for null before use : kw_hdr | CERT EXP08-C,EXP34-C
| 145 |  |
M | 149 | Pointer not checked for null before use : kw_rec | CERT EXP08-C,EXP34-C
| 148 |  |
M | 151 | Pointer not checked for null before use : name_buffer | CERT EXP08-C,EXP34-C
| 149 |  |
M | 189 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 188 |  |
M | 205 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 202 |  |
M | 208 | Pointer not checked for null before use : new_kw_hdr | CERT EXP08-C,EXP34-C
| 207 |  |
M | 190 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 188 |  |
M | 207 | Pointer not checked for null before use : dest | CERT EXP08-C,EXP34-C
| 205 |  |
M | 202 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 156 |  |
M | 180 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 167 |  |
M | 180 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 167 |  |
M | 139 | Procedure contains UR data flow anomalies. : names.arr.buffer | CERT EXP33-C
| 189 |  |
M | 139 | Procedure contains UR data flow anomalies. : names.v | CERT EXP33-C
| 189 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-fsck.c | 139 | mail-index-fsck.c | 189 | names.arr.buffer
mail-index-fsck.c | 139 | mail-index-fsck.c | 189 | names.v

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_fsck_extensions (255 to 310 mail-index-fsck.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 293 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 291 |  |
M | 298 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 264 |  |
M | 298 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 264 |  |
M | 275 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 294 |  |
M | 260 | Procedure contains UR data flow anomalies. : names.arr.buffer | CERT EXP33-C
| 286 |  |
M | 260 | Procedure contains UR data flow anomalies. : names.arr.element_size | CERT EXP33-C
| 286 |  |
M | 260 | Procedure contains UR data flow anomalies. : names.v | CERT EXP33-C
| 286 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-fsck.c | 260 | mail-index-fsck.c | 286 | names.arr.buffer
mail-index-fsck.c | 260 | mail-index-fsck.c | 286 | names.arr.element_size
mail-index-fsck.c | 260 | mail-index-fsck.c | 286 | names.v

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_fsck_records (312 to 402 mail-index-fsck.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 349 | Pointer not checked for null before use : next_rec | CERT EXP08-C,EXP34-C
| 330 |  |
M | 370 | Pointer not checked for null before use : next_rec | CERT EXP08-C,EXP34-C
| 330 |  |
M | 330 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 328 |  |
M | 395 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 394 |  |
M | 396 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 395 |  |
M | 397 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 396 |  |
M | 399 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 397 |  |
M | 400 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 399 |  |
M | 401 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 400 |  |
M | 380 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 335 |  |
M | 394 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 380 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_fsck_map (404 to 423 mail-index-fsck.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 419 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 418 |  |
M | 420 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 419 |  |
M | 420 | Pointer not checked for null before use : index.inconsistency_id | CERT EXP08-C,EXP34-C
| 419 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_fsck (425 to 462 mail-index-fsck.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 449 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 447 |  |
M | 452 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 448 |  |
M | 457 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 452 |  |
M | 460 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 457 |  |
M | 447 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 442 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_parse_extensions (7 to 58 mail-index-map-hdr.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 48 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_parse_keywords (60 to 166 mail-index-map-hdr.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 82 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 75 |  |
M | 84 | Pointer not checked for null before use : kw_hdr | CERT EXP08-C,EXP34-C
| 83 |  |
M | 85 | Pointer not checked for null before use : kw_rec | CERT EXP08-C,EXP34-C
| 84 |  |
M | 68 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 70 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-map-hdr.c | 68 | mail-index-map-hdr.c | 70 | idx
mail-index-map-hdr.c | 68 | mail-index-map-hdr.c | 75 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_check_header_compat (168 to 223 mail-index-map-hdr.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 219 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 213 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_clear_recent_flags (225 to 234 mail-index-map-hdr.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 232 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 231 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_check_header (236 to 293 mail-index-map-hdr.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 288 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 287 |  |
M | 246 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 241 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_copy_hdr (12 to 27 mail-index-map-read.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 15 | Sizeof argument is a pointer. | CERT EXP01-C
M | 18 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_mmap (29 to 96 mail-index-map-read.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 57 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 54 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 69 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_read_header (98 to 120 mail-index-map-read.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 112 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 104 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_try_read_map (122 to 236 mail-index-map-read.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 167 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 164 |  |
M | 208 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 206 |  |
M | 142 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 139 |  |
M | 190 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 183 |  |
M | 223 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 149 |  |
M | 130 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_read_map (238 to 292 mail-index-map-read.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 269 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 266 |  |
M | 282 | User input not checked before use. : st | CERT FIO30-C
| 281 |  |
M | 278 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 269 |  |
M | 274 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 269 |  |
M | 266 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 259 |  |
M | 285 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 278 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_latest_file (296 to 396 mail-index-map-read.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 340 | Pointer not checked for null before use : new_map | CERT EXP08-C,EXP34-C
| 338 |  |
M | 343 | Pointer not checked for null before use : new_map | CERT EXP08-C,EXP34-C
| 338 |  |
M | 353 | Pointer not checked for null before use : new_map | CERT EXP08-C,EXP34-C
| 377 |  |
M | 378 | Pointer not checked for null before use : old_map | CERT EXP08-C,EXP34-C
| 369 |  |
M | 323 | User input not checked before use. : st | CERT FIO30-C
| 322 |  |
M | 391 | User input not checked before use. : st | CERT FIO30-C
| 322 |  |
M | 316 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 305 |  |
M | 355 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 353 |  |
M | 357 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 355 |  |
M | 353 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 371 |  |
M | 371 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 353 |  |
M | 381 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 371 |  |
M | 326 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 316 |  |
M | 393 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 371 |  |
M | 300 | Procedure contains UR data flow anomalies. : lock_id | CERT EXP33-C
| 327 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-map-read.c | 300 | mail-index-map-read.c | 327 | lock_id
mail-index-map-read.c | 300 | mail-index-map-read.c | 344 | lock_id

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map (398 to 447 mail-index-map-read.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 426 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 415 |  |
M | 433 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 426 |  |
M | 439 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 426 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_init_extbufs (10 to 41 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 22 | Sizeof argument is a pointer. | CERT EXP01-C
M | 33 | Sizeof argument is a pointer. | CERT EXP01-C
M | 34 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_register_ext (69 to 107 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 83 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 86 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 85 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_ext_get_next (109 to 153 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 138 | Pointer not checked for null before use : name_r | CERT EXP08-C,EXP34-C
| 136 |  |
M | 132 | Pointer not checked for null before use : ext_hdr | CERT EXP08-C,EXP34-C
| 128 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_header_init (216 to 237 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 223 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 221 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_alloc (239 to 251 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 250 | Pointer not checked for null before use : tmp_map.rec_map | CERT EXP08-C,EXP34-C
| 243 |  |
M | 250 | Pointer not checked for null before use : tmp_map.index | CERT EXP08-C,EXP34-C
| 245 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_record_map_free (253 to 272 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 271 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 270 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_unmap (294 to 311 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 311 | Memory not freed after last reference. : map | CERT MEM00-C
M | 310 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 303 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_copy_records (313 to 330 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 320 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 422) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_copy_header (332 to 359 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 350 | Sizeof argument is a pointer. | CERT EXP01-C
M | 350 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_record_map_alloc (361 to 370 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 369 | Local structure returned in function result : rec_map |
M | 367 | Pointer not checked for null before use : rec_map | CERT EXP08-C,EXP34-C
| 366 |  |
M | 368 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 367 |  |
M | 368 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 367 |  |
M | 366 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 422) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_clone (372 to 422 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 421 | Local structure returned in function result : mem_map |
M | 379 | Pointer not checked for null before use : mem_map | CERT EXP08-C,EXP34-C
| 378 |  |
M | 378 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 422) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_record_map_move_to_private (424 to 452 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 431 | Pointer not checked for null before use : new_map | CERT EXP08-C,EXP34-C
| 430 |  |
M | 447 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 446 |  |
M | 441 | Pointer not checked for null before use : new_map | CERT EXP08-C,EXP34-C
| 438 |  |
M | 436 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 433 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_move_to_memory (454 to 484 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 467 | Pointer not checked for null before use : new_map | CERT EXP08-C,EXP34-C
| 466 |  |
M | 471 | Pointer not checked for null before use : new_map | CERT EXP08-C,EXP34-C
| 464 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_get_ext_idx (486 to 498 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 496 | Pointer not checked for null before use : id | CERT EXP08-C,EXP34-C
| 495 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_bsearch_uid (500 to 541 mail-index-map.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 519 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 518 |  |
M | 529 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 528 |  |
M | 518 | Pointer not checked for null before use : rec_base | CERT EXP08-C,EXP34-C
| 509 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_enable (55 to 89 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 69 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 68 |  |
M | 74 | Pointer not checked for null before use : trans | CERT EXP08-C,EXP34-C
| 69 |  |
M | 58 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_get_modseq_header (91 to 105 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 101 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 100 |  |
M | 95 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 100 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-modseq.c | 95 | mail-index-modseq.c | 100 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_modseq (127 to 147 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 146 | Local structure returned in function result : mmap |
M | 142 | Pointer not checked for null before use : mmap | CERT EXP08-C,EXP34-C
| 141 |  |
M | 142 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 142 |  |
M | 142 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 142 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_lookup (149 to 184 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 169 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 168 |  |
M | 170 | Pointer not checked for null before use : modseqp | CERT EXP08-C,EXP34-C
| 169 |  |
M | 169 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 161 |  |
M | 156 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 168 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-modseq.c | 156 | mail-index-modseq.c | 168 | ext_map_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_set (186 to 211 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 204 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 203 |  |
M | 205 | Pointer not checked for null before use : modseqp | CERT EXP08-C,EXP34-C
| 204 |  |
M | 204 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 198 |  |
M | 193 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 203 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-modseq.c | 193 | mail-index-modseq.c | 203 | ext_map_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

modseq_idx_lookup (213 to 227 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 225 | Pointer not checked for null before use : metadata | CERT EXP08-C,EXP34-C
| 221 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_lookup_flags (229 to 253 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 250 | Pointer not checked for null before use : (view)->(map)->(rec_map)->modseq | CERT EXP08-C,EXP34-C
| 233 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_lookup_keywords (255 to 280 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 277 | Pointer not checked for null before use : (view)->(map)->(rec_map)->modseq | CERT EXP08-C,EXP34-C
| 259 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_update (282 to 307 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 303 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 302 |  |
M | 304 | Pointer not checked for null before use : modseqp | CERT EXP08-C,EXP34-C
| 303 |  |
M | 303 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 300 |  |
M | 289 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 300 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-modseq.c | 289 | mail-index-modseq.c | 300 | ext_map_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_update_old_rec (323 to 385 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 332 | Procedure contains UR data flow anomalies. : seq1 | CERT EXP33-C
| 340 |  |
M | 332 | Procedure contains UR data flow anomalies. : seq2 | CERT EXP33-C
| 381 |  |
M | 330 | Procedure contains UR data flow anomalies. : uid_buf.data | CERT EXP33-C
| 349 |  |
M | 330 | Procedure contains UR data flow anomalies. : uid_buf.priv | CERT EXP33-C
| 349 |  |
M | 330 | Procedure contains UR data flow anomalies. : uid_buf.used | CERT EXP33-C
| 349 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-modseq.c | 332 | mail-index-modseq.c | 340 | seq1
mail-index-modseq.c | 332 | mail-index-modseq.c | 381 | seq1
mail-index-modseq.c | 332 | mail-index-modseq.c | 381 | seq2
mail-index-modseq.c | 330 | mail-index-modseq.c | 349 | uid_buf.data
mail-index-modseq.c | 330 | mail-index-modseq.c | 349 | uid_buf.priv
mail-index-modseq.c | 330 | mail-index-modseq.c | 349 | uid_buf.used

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_sync_init (387 to 464 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 407 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 404 |  |
M | 408 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 407 |  |
M | 456 | Pointer not checked for null before use : tdata | CERT EXP08-C,EXP34-C
| 453 |  |
M | 463 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 453 |  |
M | 431 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 425 |  |
M | 394 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 404 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-modseq.c | 394 | mail-index-modseq.c | 404 | ext_map_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_sync_begin (466 to 480 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 479 | Local structure returned in function result : ctx |
M | 472 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 471 |  |
M | 471 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 423) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_update_header (482 to 515 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 500 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 499 |  |
M | 502 | Pointer not checked for null before use : old_modseq_hdr | CERT EXP08-C,EXP34-C
| 500 |  |
M | 489 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 499 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-modseq.c | 489 | mail-index-modseq.c | 499 | ext_map_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

modseqs_idx_update (577 to 593 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 590 | Pointer not checked for null before use : metadata | CERT EXP08-C,EXP34-C
| 589 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_update_flags (595 to 608 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 606 | Pointer not checked for null before use : ctx.highest_modseq | CERT EXP08-C,EXP34-C
| 601 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_update_keyword (610 to 619 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 617 | Pointer not checked for null before use : ctx.highest_modseq | CERT EXP08-C,EXP34-C
| 614 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_reset_keywords (621 to 632 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 631 | Pointer not checked for null before use : ctx.highest_modseq | CERT EXP08-C,EXP34-C
| 626 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_modseq_clone (641 to 664 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 663 | Local structure returned in function result : new_mmap |
M | 652 | Pointer not checked for null before use : new_mmap | CERT EXP08-C,EXP34-C
| 651 |  |
M | 657 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 657 |  |
M | 657 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 657 |  |
M | 651 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 423) |  |
M | 657 | Pointer not checked for null before use : dest_metadata | CERT EXP08-C,EXP34-C
| 655 |  |
M | 656 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 652 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_get_next_log_offset (681 to 701 mail-index-modseq.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 698 | Pointer not checked for null before use : prev_file | CERT EXP08-C,EXP34-C
| 690 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_init (97 to 115 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 114 | Local structure returned in function result : strmap |
M | 105 | Pointer not checked for null before use : strmap | CERT EXP08-C,EXP34-C
| 104 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_deinit (155 to 163 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 161 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 160 |  |
M | 162 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 161 |  |
M | 162 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 162 | Pointer not checked for null before use : (strmap)->path | CERT EXP08-C,EXP34-C
| 161 |  |
M | 160 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 424) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_hash_cmp (172 to 180 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 177 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_open (182 to 211 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 210 | Local structure returned in function result : view |
M | 195 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 194 |  |
M | 194 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 424) |  |
M | 192 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_close (213 to 222 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 221 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 424) |  |
M | 215 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_set_corrupted (241 to 250 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 244 | Attempt to use already freed object. | CERT MEM31-C
M | 247 | Attempt to use already freed object. | CERT MEM31-C
M | 248 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 244 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_open (252 to 303 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 254 | Attempt to use already freed object. | CERT MEM31-C
M | 263 | Attempt to use already freed object. | CERT MEM31-C
M | 267 | Attempt to use already freed object. | CERT MEM31-C
M | 270 | Attempt to use already freed object. | CERT MEM31-C
M | 271 | Attempt to use already freed object. | CERT MEM31-C
M | 274 | Attempt to use already freed object. | CERT MEM31-C
M | 289 | Attempt to use already freed object. | CERT MEM31-C
M | 275 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 274 |  |
M | 286 | Pointer not checked for null before use : idx_hdr | CERT EXP08-C,EXP34-C
| 284 |  |
M | 257 | Procedure contains UR data flow anomalies. : data | CERT EXP33-C
| 271 |  |
M | 258 | Procedure contains UR data flow anomalies. : size | CERT EXP33-C
| 271 |  |
M | 257 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 257 | mail-index-strmap.c | 271 | data
mail-index-strmap.c | 258 | mail-index-strmap.c | 271 | size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_refresh (322 to 353 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 326 | Attempt to use already freed object. | CERT MEM31-C
M | 329 | Attempt to use already freed object. | CERT MEM31-C
M | 345 | Attempt to use already freed object. | CERT MEM31-C
M | 349 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 330 |  |
M | 352 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 349 |  |
M | 324 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 337 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 324 | mail-index-strmap.c | 337 | seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_read_packed (355 to 377 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 371 | Pointer not checked for null before use : bytes | CERT EXP08-C,EXP34-C
| 370 |  |
M | 373 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 370 |  |
M | 375 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 373 |  |
M | 359 | Procedure contains UR data flow anomalies. : data | CERT EXP33-C
| 364 |  |
M | 361 | Procedure contains UR data flow anomalies. : size | CERT EXP33-C
| 364 |  |
M | 359 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 359 | mail-index-strmap.c | 364 | data
mail-index-strmap.c | 361 | mail-index-strmap.c | 364 | size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_uid_exists (379 to 412 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 385 | Attempt to use already freed object. | CERT MEM31-C
M | 386 | Attempt to use already freed object. | CERT MEM31-C
M | 395 | Attempt to use already freed object. | CERT MEM31-C
M | 396 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 395 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_read_rec_first (414 to 465 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 433 | Sizeof argument is a pointer. | CERT EXP01-C
M | 437 | Attempt to use already freed object. | CERT MEM31-C
M | 451 | Attempt to use already freed object. | CERT MEM31-C
M | 419 | Procedure contains UR data flow anomalies. : n | CERT EXP33-C
| 430 |  |
M | 418 | Procedure contains UR data flow anomalies. : size | CERT EXP33-C
| 437 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 419 | mail-index-strmap.c | 430 | n
mail-index-strmap.c | 418 | mail-index-strmap.c | 437 | size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_read_rec_next (467 to 493 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 472 | Attempt to use already freed object. | CERT MEM31-C
M | 481 | String function params access same variable. | CERT DCL33-C
M | 481 | Sizeof argument is a pointer. | CERT EXP01-C
M | 491 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

strmap_read_block_init (495 to 547 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 499 | Attempt to use already freed object. | CERT MEM31-C
M | 511 | Attempt to use already freed object. | CERT MEM31-C
M | 518 | Attempt to use already freed object. | CERT MEM31-C
M | 521 | Insufficient space for operation. | CERT DCL33-C,FIO43-C
M | 528 | Attempt to use already freed object. | CERT MEM31-C
M | 530 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 510 |  |
M | 500 | Procedure contains UR data flow anomalies. : data | CERT EXP33-C
| 511 |  |
M | 502 | Procedure contains UR data flow anomalies. : seq1 | CERT EXP33-C
| 542 |  |
M | 502 | Procedure contains UR data flow anomalies. : seq2 | CERT EXP33-C
| 542 |  |
M | 501 | Procedure contains UR data flow anomalies. : size | CERT EXP33-C
| 511 |  |
M | 500 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 500 | mail-index-strmap.c | 511 | data
mail-index-strmap.c | 502 | mail-index-strmap.c | 542 | seq1
mail-index-strmap.c | 502 | mail-index-strmap.c | 542 | seq2
mail-index-strmap.c | 501 | mail-index-strmap.c | 511 | size

[ | Top of Report | | | Procedure Table | | | Contents | ]

strmap_read_block_next (549 to 572 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 553 | Procedure contains UR data flow anomalies. : uid_diff | CERT EXP33-C
| 568 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 553 | mail-index-strmap.c | 568 | uid_diff

[ | Top of Report | | | Procedure Table | | | Contents | ]

strmap_read_block_deinit (574 to 610 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 579 | Attempt to use already freed object. | CERT MEM31-C
M | 584 | Attempt to use already freed object. | CERT MEM31-C
M | 587 | Attempt to use already freed object. | CERT MEM31-C
M | 599 | Attempt to use already freed object. | CERT MEM31-C
M | 590 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 584 |  |
M | 578 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

strmap_view_sync_handle_conflict (612 to 635 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 617 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 620 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 617 | mail-index-strmap.c | 620 | seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

strmap_view_sync_block_check_conflicts (637 to 670 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 660 | Pointer not checked for null before use : iter.next_value | CERT EXP08-C,EXP34-C
| 659 |  |
M | 660 | Pointer not checked for null before use : iter.value | CERT EXP08-C,EXP34-C
| 659 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_sync_block (672 to 704 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 701 | Pointer not checked for null before use : hash_rec | CERT EXP08-C,EXP34-C
| 700 |  |
M | 703 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 679 |  |
M | 676 | Procedure contains UR data flow anomalies. : crc32 | CERT EXP33-C
| 689 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 676 | mail-index-strmap.c | 689 | crc32

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_sync_init (706 to 743 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 720 | Attempt to use already freed object. | CERT MEM31-C
M | 721 | Attempt to use already freed object. | CERT MEM31-C
M | 742 | Local structure returned in function result : sync |
M | 715 | Pointer not checked for null before use : sync | CERT EXP08-C,EXP34-C
| 714 |  |
M | 714 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 424) |  |
M | 724 | Pointer not checked for null before use : ctx.input | CERT EXP08-C,EXP34-C
| 723 |  |
M | 724 | Pointer not checked for null before use : ctx.view | CERT EXP08-C,EXP34-C
| 723 |  |
M | 724 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 723 |  |
M | 723 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.data | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.end | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.end_offset | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.highest_str_idx | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.input | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.lost_expunged_uid | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.next_ref_index | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.rec.ref_index | CERT EXP33-C
| 723 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.rec.str_idx | CERT EXP33-C
| 723 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.rec.uid | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.rec_size | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.str_idx_base | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.too_large_uids | CERT EXP33-C
| 724 |  |
M | 711 | Procedure contains UR data flow anomalies. : ctx.uid_lookup_idx | CERT EXP33-C
| 724 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.data
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.end
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.end_offset
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.highest_str_idx
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.input
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.lost_expunged_uid
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.next_ref_index
mail-index-strmap.c | 711 | mail-index-strmap.c | 723 | ctx.rec.ref_index
mail-index-strmap.c | 711 | mail-index-strmap.c | 723 | ctx.rec.str_idx
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.rec.uid
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.rec_size
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.str_idx_base
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.too_large_uids
mail-index-strmap.c | 711 | mail-index-strmap.c | 724 | ctx.uid_lookup_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_sync_add (754 to 789 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 758 | Attempt to use already freed object. | CERT MEM31-C
M | 770 | Attempt to use already freed object. | CERT MEM31-C
M | 780 | Attempt to use already freed object. | CERT MEM31-C
M | 770 | Pointer not checked for null before use : hash_key.str | CERT EXP08-C,EXP34-C
| 767 |  |
M | 781 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 780 |  |
M | 758 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_sync_add_unique (791 to 810 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 794 | Attempt to use already freed object. | CERT MEM31-C
M | 794 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_renumber (820 to 885 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 879 | Pointer not checked for null before use : hash_rec | CERT EXP08-C,EXP34-C
| 878 |  |
M | 833 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 424) |  |
M | 843 | Pointer not checked for null before use : ctx.str_idx_base | CERT EXP08-C,EXP34-C
| 828 |  |
M | 843 | Pointer not checked for null before use : ctx.end | CERT EXP08-C,EXP34-C
| 828 |  |
M | 843 | Pointer not checked for null before use : ctx.data | CERT EXP08-C,EXP34-C
| 828 |  |
M | 843 | Pointer not checked for null before use : ctx.input | CERT EXP08-C,EXP34-C
| 828 |  |
M | 843 | Pointer not checked for null before use : ctx.view | CERT EXP08-C,EXP34-C
| 829 |  |
M | 877 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 874 |  |
M | 878 | Pointer not checked for null before use : recs_crc32 | CERT EXP08-C,EXP34-C
| 859 |  |
M | 871 | Pointer not checked for null before use : renumber_map | CERT EXP08-C,EXP34-C
| 833 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_write_block (887 to 968 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 941 | Sizeof argument is a pointer. | CERT EXP01-C
M | 944 | Sizeof argument is a pointer. | CERT EXP01-C
M | 939 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 938 |  |
M | 910 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 904 |  |
M | 941 | Pointer not checked for null before use : crc32 | CERT EXP08-C,EXP34-C
| 905 |  |
M | 893 | Procedure contains UR data flow anomalies. : count2 | CERT EXP33-C
| 906 |  |
M | 895 | Procedure contains UR data flow anomalies. : packed | CERT EXP33-C
| 939 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 893 | mail-index-strmap.c | 906 | count2
mail-index-strmap.c | 895 | mail-index-strmap.c | 939 | packed

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_recreate_write (970 to 987 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 982 | Pointer not checked for null before use : idx_hdr | CERT EXP08-C,EXP34-C
| 977 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_recreate (989 to 1040 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 991 | Attempt to use already freed object. | CERT MEM31-C
M | 999 | Attempt to use already freed object. | CERT MEM31-C
M | 1000 | Attempt to use already freed object. | CERT MEM31-C
M | 1005 | Attempt to use already freed object. | CERT MEM31-C
M | 1012 | Attempt to use already freed object. | CERT MEM31-C
M | 1022 | Attempt to use already freed object. | CERT MEM31-C
M | 1028 | Attempt to use already freed object. | CERT MEM31-C
M | 1031 | Attempt to use already freed object. | CERT MEM31-C
M | 1032 | Attempt to use already freed object. | CERT MEM31-C
M | 1005 | Pointer not checked for null before use : str | CERT EXP08-C,EXP34-C
| 1004 |  |
M | 1018 | Pointer not checked for null before use : output | CERT EXP08-C,EXP34-C
| 1017 |  |
M | 1031 | Pointer not checked for null before use : temp_path | CERT EXP08-C,EXP34-C
| 1009 |  |
M | 1038 | Pointer not checked for null before use : temp_path | CERT EXP08-C,EXP34-C
| 1009 |  |
M | 1028 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1022 |  |
M | 1032 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1022 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_write_append (1089 to 1183 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1130 | Attempt to use already freed object. | CERT MEM31-C
M | 1131 | Attempt to use already freed object. | CERT MEM31-C
M | 1172 | Attempt to use already freed object. | CERT MEM31-C
M | 1178 | Attempt to use already freed object. | CERT MEM31-C
M | 1173 | Pointer not checked for null before use : output | CERT EXP08-C,EXP34-C
| 1172 |  |
M | 1157 | Pointer not checked for null before use : ctx.data | CERT EXP08-C,EXP34-C
| 1135 |  |
M | 1135 | Pointer not checked for null before use : ctx.input | CERT EXP08-C,EXP34-C
| 1134 |  |
M | 1135 | Pointer not checked for null before use : ctx.view | CERT EXP08-C,EXP34-C
| 1134 |  |
M | 1157 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1135 |  |
M | 1134 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1157 |  |
M | 1135 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1134 |  |
M | 1178 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1134 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.data | CERT EXP33-C
| 1135 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.end | CERT EXP33-C
| 1135 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.end_offset | CERT EXP33-C
| 1135 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.highest_str_idx | CERT EXP33-C
| 1157 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.input | CERT EXP33-C
| 1135 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.lost_expunged_uid | CERT EXP33-C
| 1157 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.next_ref_index | CERT EXP33-C
| 1157 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.rec.ref_index | CERT EXP33-C
| 1134 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.rec.str_idx | CERT EXP33-C
| 1134 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.rec.uid | CERT EXP33-C
| 1135 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.rec_size | CERT EXP33-C
| 1135 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.str_idx_base | CERT EXP33-C
| 1157 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.too_large_uids | CERT EXP33-C
| 1157 |  |
M | 1092 | Procedure contains UR data flow anomalies. : ctx.uid_lookup_idx | CERT EXP33-C
| 1157 |  |
M | 1094 | Procedure contains UR data flow anomalies. : i | CERT EXP33-C
| 1121 |  |

Code | Line | Violation | Standard
--- | --- | --- | ---

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1135 | ctx.data
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1135 | ctx.end
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1135 | ctx.end_offset
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1157 | ctx.highest_str_idx
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1135 | ctx.input
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1157 | ctx.lost_expunged_uid
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1157 | ctx.next_ref_index
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1134 | ctx.rec.ref_index
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1157 | ctx.rec.ref_index
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1134 | ctx.rec.str_idx
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1157 | ctx.rec.str_idx
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1135 | ctx.rec.uid
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1135 | ctx.rec_size
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1157 | ctx.str_idx_base
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1157 | ctx.too_large_uids
mail-index-strmap.c | 1092 | mail-index-strmap.c | 1157 | ctx.uid_lookup_idx
mail-index-strmap.c | 1094 | mail-index-strmap.c | 1121 | i

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_write (1185 to 1230 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1194 | Attempt to use already freed object. | CERT MEM31-C
M | 1203 | Attempt to use already freed object. | CERT MEM31-C
M | 1206 | Attempt to use already freed object. | CERT MEM31-C
M | 1195 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1193 |  |
M | 1219 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1216 |  |
M | 1224 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1219 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_sync_commit (1232 to 1246 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1235 | Attempt to use already freed object. | CERT MEM31-C
M | 1240 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1238 |  |
M | 1240 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 1238 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 424) |  |
M | 1235 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_strmap_view_sync_rollback (1248 to 1257 mail-index-strmap.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1256 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 424) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_init_expunge_handlers (13 to 56 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 51 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 34 |  |
M | 41 | Pointer not checked for null before use : id_map | CERT EXP08-C,EXP34-C
| 35 |  |
M | 49 | Pointer not checked for null before use : contexts | CERT EXP08-C,EXP34-C
| 36 |  |
M | 52 | Pointer not checked for null before use : eh.context | CERT EXP08-C,EXP34-C
| 48 |  |
M | 20 | Procedure contains UR data flow anomalies. : id_map_count | CERT EXP33-C
| 40 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-ext.c | 20 | mail-index-sync-ext.c | 40 | id_map_count

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_deinit_handlers (96 to 118 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 112 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 105 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

get_ext_header (120 to 132 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 128 | Pointer not checked for null before use : hdr_base | CERT EXP08-C,EXP34-C
| 127 |  |
M | 129 | Pointer not checked for null before use : ext_hdr | CERT EXP08-C,EXP34-C
| 128 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_ext_reorder (141 to 256 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 254 | Pointer not checked for null before use : ext_hdr | CERT EXP08-C,EXP34-C
| 253 |  |
M | 168 | Pointer not checked for null before use : sorted | CERT EXP08-C,EXP34-C
| 161 |  |
M | 185 | Pointer not checked for null before use : sorted | CERT EXP08-C,EXP34-C
| 168 |  |
M | 163 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 155 |  |
M | 230 | Pointer not checked for null before use : old_offsets | CERT EXP08-C,EXP34-C
| 159 |  |
M | 230 | Pointer not checked for null before use : copy_sizes | CERT EXP08-C,EXP34-C
| 174 |  |
M | 226 | Pointer not checked for null before use : src | CERT EXP08-C,EXP34-C
| 221 |  |
M | 226 | Pointer not checked for null before use : new_buffer | CERT EXP08-C,EXP34-C
| 220 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_ext_resize (258 to 343 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 271 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 269 |  |
M | 317 | Pointer not checked for null before use : ext_hdr | CERT EXP08-C,EXP34-C
| 316 |  |
M | 338 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 337 |  |
M | 338 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 337 |  |
M | 331 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 329 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_ext_unknown_complain (345 to 367 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 361 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 360 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_ext_init_new (369 to 421 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 385 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 383 |  |
M | 386 | Pointer not checked for null before use : hdr_buf | CERT EXP08-C,EXP34-C
| 385 |  |
M | 408 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 399 |  |
M | 416 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 383 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_ext_init (423 to 456 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 446 | Pointer not checked for null before use : ext_map_idx_r | CERT EXP08-C,EXP34-C
| 437 |  |
M | 450 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 435 |  |
M | 443 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 435 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_ext_intro (458 to 554 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 494 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 493 |  |
M | 501 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 500 |  |
M | 465 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 494 |  |
M | 490 | Procedure contains UR data flow anomalies. : name | CERT EXP33-C
| 464 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-ext.c | 465 | mail-index-sync-ext.c | 494 | ext_map_idx
mail-index-sync-ext.c | 490 | mail-index-sync-ext.c | 503 | name

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_ext_reset (576 to 607 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 598 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 596 |  |
M | 599 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 598 |  |
M | 605 | Pointer not checked for null before use : ext_hdr | CERT EXP08-C,EXP34-C
| 604 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_ext_hdr_update (609 to 639 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 625 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 624 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_ext_rec_update (641 to 691 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 666 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 665 |  |
M | 670 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 669 |  |
M | 676 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 672 |  |
M | 680 | Pointer not checked for null before use : extra_context | CERT EXP08-C,EXP34-C
| 677 |  |
M | 680 | Pointer not checked for null before use : old_data | CERT EXP08-C,EXP34-C
| 670 |  |
M | 650 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 662 |  |
M | 645 | Declaration types do not match across a system. : view | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-ext.c | 650 | mail-index-sync-ext.c | 662 | seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_ext_atomic_inc (693 to 790 mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 717 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 716 |  |
M | 721 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 720 |  |
M | 740 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 721 |  |
M | 701 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 713 |  |
M | 697 | Declaration types do not match across a system. : view | CERT ARR31-C
M | 700 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-ext.c | 701 | mail-index-sync-ext.c | 713 | seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

keyword_lookup (11 to 32 mail-index-sync-keywords.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 17 | Procedure contains UR data flow anomalies. : keyword_idx | CERT EXP33-C
| 25 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-keywords.c | 17 | mail-index-sync-keywords.c | 25 | keyword_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

keywords_get_header_buf (34 to 73 mail-index-sync-keywords.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 72 | Local structure returned in function result : buf |
M | 49 | Pointer not checked for null before use : kw_hdr | CERT EXP08-C,EXP34-C
| 48 |  |
M | 50 | Pointer not checked for null before use : kw_rec | CERT EXP08-C,EXP34-C
| 49 |  |
M | 65 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 64 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

keywords_ext_register (75 to 111 mail-index-sync-keywords.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 90 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 89 |  |
M | 79 | Procedure contains UR data flow anomalies. : ext_intro_buf.data | CERT EXP33-C
| 86 |  |
M | 79 | Procedure contains UR data flow anomalies. : ext_intro_buf.priv | CERT EXP33-C
| 86 |  |
M | 79 | Procedure contains UR data flow anomalies. : ext_intro_buf.used | CERT EXP33-C
| 86 |  |
M | 81 | Procedure contains UR data flow anomalies. : ext_intro_data | CERT EXP33-C
| 86 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-keywords.c | 79 | mail-index-sync-keywords.c | 86 | ext_intro_buf.data
mail-index-sync-keywords.c | 79 | mail-index-sync-keywords.c | 86 | ext_intro_buf.priv
mail-index-sync-keywords.c | 79 | mail-index-sync-keywords.c | 86 | ext_intro_buf.used
mail-index-sync-keywords.c | 81 | mail-index-sync-keywords.c | 86 | ext_intro_data

[ | Top of Report | | | Procedure Table | | | Contents | ]

keywords_header_add (113 to 197 mail-index-sync-keywords.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 131 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 129 |  |
M | 137 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 136 |  |
M | 145 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 144 |  |
M | 146 | Pointer not checked for null before use : kw_hdr | CERT EXP08-C,EXP34-C
| 145 |  |
M | 174 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 181 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 179 |  |
M | 186 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 184 |  |
M | 160 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 137 |  |
M | 192 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 174 |  |
M | 121 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 131 |  |
M | 124 | Procedure contains UR data flow anomalies. : keywords_count | CERT EXP33-C
| 171 |  |
M | 123 | Procedure contains UR data flow anomalies. : name_offset | CERT EXP33-C
| 157 |  |
M | 123 | Procedure contains UR data flow anomalies. : name_offset_root | CERT EXP33-C
| 161 |  |
M | 123 | Procedure contains UR data flow anomalies. : rec_offset | CERT EXP33-C
| 160 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-keywords.c | 121 | mail-index-sync-keywords.c | 131 | ext_map_idx
mail-index-sync-keywords.c | 121 | mail-index-sync-keywords.c | 136 | ext_map_idx
mail-index-sync-keywords.c | 124 | mail-index-sync-keywords.c | 171 | keywords_count
mail-index-sync-keywords.c | 124 | mail-index-sync-keywords.c | 195 | keywords_count
mail-index-sync-keywords.c | 123 | mail-index-sync-keywords.c | 157 | name_offset
mail-index-sync-keywords.c | 123 | mail-index-sync-keywords.c | 161 | name_offset_root
mail-index-sync-keywords.c | 123 | mail-index-sync-keywords.c | 160 | rec_offset

[ | Top of Report | | | Procedure Table | | | Contents | ]

keywords_update_records (199 to 248 mail-index-sync-keywords.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 232 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 231 |  |
M | 233 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 232 |  |
M | 240 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 239 |  |
M | 241 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 240 |  |
M | 209 | Procedure contains UR data flow anomalies. : seq1 | CERT EXP33-C
| 213 |  |
M | 209 | Procedure contains UR data flow anomalies. : seq2 | CERT EXP33-C
| 213 |  |
M | 205 | Declaration types do not match across a system. : view | CERT ARR31-C
M | 207 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-keywords.c | 209 | mail-index-sync-keywords.c | 213 | seq1
mail-index-sync-keywords.c | 209 | mail-index-sync-keywords.c | 213 | seq2

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_keywords (250 to 315 mail-index-sync-keywords.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 271 | Pointer not checked for null before use : keyword_name | CERT EXP08-C,EXP34-C
| 270 |  |
M | 287 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 286 |  |
M | 305 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 301 |  |
M | 305 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 294 |  |
M | 258 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 282 |  |
M | 259 | Procedure contains UR data flow anomalies. : keyword_idx | CERT EXP33-C
| 287 |  |
M | 254 | Declaration types do not match across a system. : view | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-keywords.c | 258 | mail-index-sync-keywords.c | 282 | ext_map_idx
mail-index-sync-keywords.c | 259 | mail-index-sync-keywords.c | 287 | keyword_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_keywords_reset (317 to 350 mail-index-sync-keywords.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 345 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 334 |  |
M | 326 | Procedure contains UR data flow anomalies. : ext_map_idx | CERT EXP33-C
| 328 |  |
M | 326 | Procedure contains UR data flow anomalies. : seq1 | CERT EXP33-C
| 337 |  |
M | 326 | Procedure contains UR data flow anomalies. : seq2 | CERT EXP33-C
| 337 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-keywords.c | 326 | mail-index-sync-keywords.c | 328 | ext_map_idx
mail-index-sync-keywords.c | 326 | mail-index-sync-keywords.c | 334 | ext_map_idx
mail-index-sync-keywords.c | 326 | mail-index-sync-keywords.c | 337 | seq1
mail-index-sync-keywords.c | 326 | mail-index-sync-keywords.c | 337 | seq2

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_replace_map (56 to 71 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 70 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 64 |  |
M | 59 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_move_to_private_memory (73 to 89 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 88 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 87 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_get_atomic_map (91 to 99 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 96 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 95 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_header_update_counts_all (147 to 166 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 158 | Pointer not checked for null before use : maps | CERT EXP08-C,EXP34-C
| 156 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_header_update_lowwaters (187 to 203 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 197 | Pointer not checked for null before use : maps | CERT EXP08-C,EXP34-C
| 194 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_expunge_call_handlers (205 to 235 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 230 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 225 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_expunge (237 to 267 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 254 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 253 |  |
M | 253 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 251 |  |
M | 254 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 251 |  |
M | 242 | Procedure contains UR data flow anomalies. : seq1 | CERT EXP33-C
| 244 |  |
M | 242 | Procedure contains UR data flow anomalies. : seq2 | CERT EXP33-C
| 244 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-update.c | 242 | mail-index-sync-update.c | 244 | seq1
mail-index-sync-update.c | 242 | mail-index-sync-update.c | 244 | seq2

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_uid_update (304 to 337 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 324 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 323 |  |
M | 330 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 329 |  |
M | 310 | Procedure contains UR data flow anomalies. : old_seq | CERT EXP33-C
| 320 |  |
M | 307 | Declaration types do not match across a system. : view | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-update.c | 310 | mail-index-sync-update.c | 320 | old_seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_modseq_update (339 to 375 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 346 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 354 |  |
M | 344 | Declaration types do not match across a system. : view | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-update.c | 346 | mail-index-sync-update.c | 354 | seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_append (389 to 447 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 411 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 409 |  |
M | 417 | Pointer not checked for null before use : old_rec | CERT EXP08-C,EXP34-C
| 416 |  |
M | 392 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_flag_update (449 to 494 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 477 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 476 |  |
M | 483 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 481 |  |
M | 455 | Procedure contains UR data flow anomalies. : seq1 | CERT EXP33-C
| 457 |  |
M | 455 | Procedure contains UR data flow anomalies. : seq2 | CERT EXP33-C
| 457 |  |
M | 452 | Declaration types do not match across a system. : view | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-update.c | 455 | mail-index-sync-update.c | 457 | seq1
mail-index-sync-update.c | 455 | mail-index-sync-update.c | 457 | seq2

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_header_update (496 to 550 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 499 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | 520 | Sizeof argument is a pointer. | CERT EXP01-C
M | 523 | Sizeof argument is a pointer. | CERT EXP01-C
M | 524 | Sizeof argument is a pointer. | CERT EXP01-C
M | 538 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 531 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_record (552 to 835 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 613 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 612 |  |
M | 748 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 745 |  |
M | 683 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 680 |  |
M | 690 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 680 |  |
M | 709 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 706 |  |
M | 716 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 706 |  |
M | 760 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 751 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_map_init (837 to 848 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 842 | Pointer not checked for null before use : sync_map_ctx | CERT EXP08-C,EXP34-C
| 841 |  |
M | 847 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 845 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_update_hdr_dirty_flag (861 to 877 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 872 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 871 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_map (908 to 1097 mail-index-sync-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1069 | Sizeof argument is a pointer. | CERT EXP01-C
M | 1071 | String function params access same variable. | CERT DCL33-C
M | 958 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 957 |  |
M | 1011 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 1010 |  |
M | 1087 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1084 |  |
M | 1049 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 1046 |  |
M | 1057 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 1046 |  |
M | 1095 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 1088 |  |
M | 1013 | Pointer not checked for null before use : sync_map_ctx.modseq_ctx | CERT EXP08-C,EXP34-C
| 1004 |  |
M | 1050 | Pointer not checked for null before use : sync_map_ctx.modseq_ctx | CERT EXP08-C,EXP34-C
| 1004 |  |
M | 1078 | Pointer not checked for null before use : sync_map_ctx.modseq_ctx | CERT EXP08-C,EXP34-C
| 1050 |  |
M | 1042 | Pointer not checked for null before use : tdata | CERT EXP08-C,EXP34-C
| 1022 |  |
M | 1010 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1004 |  |
M | 1022 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1042 |  |
M | 1084 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1083 |  |
M | 1050 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1022 |  |
M | 1091 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1083 |  |
M | 965 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 958 |  |
M | 1042 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1022 |  |
M | 1004 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 958 |  |
M | 1083 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1050 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.cur_ext_ignore | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.errors | CERT EXP33-C
| 1089 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.expunge_handlers.arr.buffer | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.expunge_handlers.arr.element_size | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.expunge_handlers.v | CERT EXP33-C
| 1042 |  |

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.expunge_handlers.v_modifiable | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.expunge_handlers_set | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.expunge_handlers_used | CERT EXP33-C
| 1078 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.ext_intro_end_offset | CERT EXP33-C
| 1013 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.ext_intro_offset | CERT EXP33-C
| 1013 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.ext_intro_seq | CERT EXP33-C
| 1013 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.extra_contexts.arr.buffer | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.extra_contexts.arr.element_size | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.extra_contexts.v | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.extra_contexts.v_modifiable | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.internal_update | CERT EXP33-C
| 1042 |  |
M | 914 | Procedure contains UR data flow anomalies. : sync_map_ctx.unknown_extensions | CERT EXP33-C
| 1042 |  |
M | 913 | Declaration types do not match across a system. : view | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.cur_ext_ignore
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1089 | sync_map_ctx.errors
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.expunge_handlers.arr.buffer
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.expunge_handlers.arr.element_size
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.expunge_handlers.v
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.expunge_handlers.v_modifiable
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.expunge_handlers_set
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1078 | sync_map_ctx.expunge_handlers_used
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1013 | sync_map_ctx.ext_intro_end_offset
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1052 | sync_map_ctx.ext_intro_end_offset
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1013 | sync_map_ctx.ext_intro_offset
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1052 | sync_map_ctx.ext_intro_offset
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1013 | sync_map_ctx.ext_intro_seq
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1052 | sync_map_ctx.ext_intro_seq
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.extra_contexts.arr.buffer
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.extra_contexts.arr.element_size
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.extra_contexts.v
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.extra_contexts.v_modifiable
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.internal_update
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1042 | sync_map_ctx.unknown_extensions
mail-index-sync-update.c | 914 | mail-index-sync-update.c | 1078 | sync_map_ctx.unknown_extensions

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_add_keyword_update (77 to 105 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 93 | Pointer not checked for null before use : keyword_names | CERT EXP08-C,EXP34-C
| 92 |  |
M | 104 | Pointer not checked for null before use : keywords | CERT EXP08-C,EXP34-C
| 93 |  |
M | 99 | Pointer not checked for null before use : keywords | CERT EXP08-C,EXP34-C
| 93 |  |
M | 98 | Pointer not checked for null before use : uids | CERT EXP08-C,EXP34-C
| 89 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_add_keyword_reset (107 to 122 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 114 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 121 | Pointer not checked for null before use : keywords | CERT EXP08-C,EXP34-C
| 114 |  |
M | 117 | Pointer not checked for null before use : keywords | CERT EXP08-C,EXP34-C
| 114 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_add_append (124 to 136 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 132 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 131 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_add_dirty_updates (165 to 182 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 176 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 175 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_read_and_sort (197 to 268 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 235 | Pointer not checked for null before use : synclist | CERT EXP08-C,EXP34-C
| 234 |  |
M | 240 | Pointer not checked for null before use : synclist | CERT EXP08-C,EXP34-C
| 239 |  |
M | 246 | Pointer not checked for null before use : synclist | CERT EXP08-C,EXP34-C
| 245 |  |
M | 254 | Pointer not checked for null before use : synclist | CERT EXP08-C,EXP34-C
| 253 |  |
M | 260 | Pointer not checked for null before use : synclist | CERT EXP08-C,EXP34-C
| 259 |  |
M | 215 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 222 |  |
M | 222 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 215 |  |
M | 231 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 215 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_set_log_view (304 to 327 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 321 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 315 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_begin_init (344 to 419 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 371 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 358 |  |
M | 379 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 371 |  |
M | 381 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 379 |  |
M | 389 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 371 |  |
M | 396 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 371 |  |
M | 416 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 413 |  |
M | 404 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 371 |  |
M | 350 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 410 |  |
M | 351 | Procedure contains UR data flow anomalies. : offset | CERT EXP33-C
| 411 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-sync.c | 350 | mail-index-sync.c | 410 | seq
mail-index-sync.c | 351 | mail-index-sync.c | 411 | offset

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_begin_to (421 to 497 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 446 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 439 |  |
M | 465 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 461 |  |
M | 474 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 461 |  |
M | 447 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 446 |  |
M | 455 | Pointer not checked for null before use : sync_view | CERT EXP08-C,EXP34-C
| 454 |  |
M | 466 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 465 |  |
M | 467 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 466 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_view_have_any (499 to 550 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 526 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 518 |  |
M | 503 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_have_any (552 to 564 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 560 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 558 |  |
M | 561 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 560 |  |
M | 555 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_get_expunge (577 to 585 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 584 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_next (620 to 685 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 644 | Pointer not checked for null before use : uid_range | CERT EXP08-C,EXP34-C
| 643 |  |
M | 668 | Pointer not checked for null before use : sync_list | CERT EXP08-C,EXP34-C
| 637 |  |
M | 678 | Pointer not checked for null before use : uid_range | CERT EXP08-C,EXP34-C
| 668 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_end (717 to 733 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 732 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 726 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_commit (773 to 836 mail-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 834 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 832 |  |
M | 808 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 794 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_get_hdr_update_buffer (23 to 54 mail-index-transaction-export.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 38 | Sizeof argument is a pointer. | CERT EXP01-C
M | 39 | Sizeof argument is a pointer. | CERT EXP01-C
M | 47 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 37 |  |
M | 48 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 34 |  |
M | 27 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_append_ext_intro (56 to 124 mail-index-transaction-export.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 94 | Pointer not checked for null before use : intro | CERT EXP08-C,EXP34-C
| 93 |  |
M | 95 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 74 |  |
M | 85 | Pointer not checked for null before use : resizes | CERT EXP08-C,EXP34-C
| 79 |  |
M | 93 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 82 |  |
M | 63 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 94 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-export.c | 63 | mail-index-transaction-export.c | 94 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_append_ext_hdr_update (126 to 169 mail-index-transaction-export.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 165 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 143 |  |
M | 160 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 140 |  |
M | 131 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_append_ext_intros (171 to 253 mail-index-transaction-export.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 225 | Pointer not checked for null before use : reset | CERT EXP08-C,EXP34-C
| 202 |  |
M | 237 | Pointer not checked for null before use : reset_ids | CERT EXP08-C,EXP34-C
| 198 |  |
M | 202 | Procedure contains UR data flow anomalies. : reset | CERT EXP33-C
| 181 |  |
M | 183 | Procedure contains UR data flow anomalies. : reset_buf.data | CERT EXP33-C
| 220 |  |
M | 183 | Procedure contains UR data flow anomalies. : reset_buf.priv | CERT EXP33-C
| 220 |  |
M | 183 | Procedure contains UR data flow anomalies. : reset_buf.used | CERT EXP33-C
| 220 |  |
M | 179 | Procedure contains UR data flow anomalies. : reset_id_count | CERT EXP33-C
| 236 |  |
M | 195 | Procedure contains UR data flow anomalies. : reset_ids | CERT EXP33-C
| 182 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-export.c | 202 | mail-index-transaction-export.c | 225 | reset
mail-index-transaction-export.c | 183 | mail-index-transaction-export.c | 220 | reset_buf.data
mail-index-transaction-export.c | 183 | mail-index-transaction-export.c | 220 | reset_buf.priv
mail-index-transaction-export.c | 183 | mail-index-transaction-export.c | 220 | reset_buf.used
mail-index-transaction-export.c | 179 | mail-index-transaction-export.c | 236 | reset_id_count
mail-index-transaction-export.c | 195 | mail-index-transaction-export.c | 237 | reset_ids

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_append_ext_recs (255 to 283 mail-index-transaction-export.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 278 | Pointer not checked for null before use : reset_ids | CERT EXP08-C,EXP34-C
| 269 |  |
M | 266 | Procedure contains UR data flow anomalies. : reset_ids | CERT EXP33-C
| 261 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-export.c | 266 | mail-index-transaction-export.c | 278 | reset_ids

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_append_keyword_updates (306 to 337 mail-index-transaction-export.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 325 | Pointer not checked for null before use : keywords | CERT EXP08-C,EXP34-C
| 317 |  |
M | 325 | Pointer not checked for null before use : tmp_buf | CERT EXP08-C,EXP34-C
| 315 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_export_new_uids (339 to 392 mail-index-transaction-export.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 370 | Sizeof argument is a pointer. | CERT EXP01-C
M | 375 | Sizeof argument is a pointer. | CERT EXP01-C
M | 382 | Sizeof argument is a pointer. | CERT EXP01-C
M | 387 | Sizeof argument is a pointer. | CERT EXP01-C
M | 382 | Pointer not checked for null before use : appends | CERT EXP08-C,EXP34-C
| 365 |  |
M | 387 | Pointer not checked for null before use : updates | CERT EXP08-C,EXP34-C
| 366 |  |
M | 345 | Procedure contains UR data flow anomalies. : update_count | CERT EXP33-C
| 368 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-export.c | 345 | mail-index-transaction-export.c | 368 | update_count

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_export (394 to 481 mail-index-transaction-export.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 413 | Pointer not checked for null before use : ctx.append_ctx | CERT EXP08-C,EXP34-C
| 403 |  |
M | 407 | Pointer not checked for null before use : ctx.append_ctx | CERT EXP08-C,EXP34-C
| 403 |  |
M | 413 | Pointer not checked for null before use : ctx.trans | CERT EXP08-C,EXP34-C
| 402 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

ext_reset_update_atomic (29 to 61 mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 42 | Pointer not checked for null before use : map_ext | CERT EXP08-C,EXP34-C
| 41 |  |
M | 58 | Pointer not checked for null before use : reset | CERT EXP08-C,EXP34-C
| 57 |  |
M | 35 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 41 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-finish.c | 35 | mail-index-transaction-finish.c | 41 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_drop_range (81 to 107 mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 102 | Pointer not checked for null before use : keep_range | CERT EXP08-C,EXP34-C
| 90 |  |
M | 88 | Procedure contains UR data flow anomalies. : keep_count | CERT EXP33-C
| 91 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-finish.c | 88 | mail-index-transaction-finish.c | 91 | keep_count

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_finish_flag_updates (109 to 141 mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 129 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 128 |  |
M | 126 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 121 |  |
M | 115 | Procedure contains UR data flow anomalies. : keeps.arr.buffer | CERT EXP33-C
| 135 |  |
M | 115 | Procedure contains UR data flow anomalies. : keeps.arr.element_size | CERT EXP33-C
| 135 |  |
M | 115 | Procedure contains UR data flow anomalies. : keeps.v | CERT EXP33-C
| 132 |  |
M | 115 | Procedure contains UR data flow anomalies. : keeps.v_modifiable | CERT EXP33-C
| 132 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-finish.c | 115 | mail-index-transaction-finish.c | 135 | keeps.arr.buffer
mail-index-transaction-finish.c | 115 | mail-index-transaction-finish.c | 135 | keeps.arr.element_size
mail-index-transaction-finish.c | 115 | mail-index-transaction-finish.c | 132 | keeps.v
mail-index-transaction-finish.c | 115 | mail-index-transaction-finish.c | 132 | keeps.v_modifiable

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_get_uid (172 to 187 mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 185 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 183 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_convert_to_uids (189 to 204 mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 202 | Pointer not checked for null before use : seq | CERT EXP08-C,EXP34-C
| 201 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_convert_to_uid_ranges (219 to 255 mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 234 | Pointer not checked for null before use : range | CERT EXP08-C,EXP34-C
| 232 |  |
M | 246 | Pointer not checked for null before use : new_range | CERT EXP08-C,EXP34-C
| 242 |  |
M | 246 | Pointer not checked for null before use : range | CERT EXP08-C,EXP34-C
| 243 |  |
M | 247 | Pointer not checked for null before use : new_range | CERT EXP08-C,EXP34-C
| 246 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

expunges_convert_to_uids (270 to 296 mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 290 | String function params access same variable. | CERT DCL33-C
M | 290 | Sizeof argument is a pointer. | CERT EXP01-C
M | 285 | Pointer not checked for null before use : expunges | CERT EXP08-C,EXP34-C
| 280 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_finish (320 to 345 mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 336 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 334 |  |
M | 329 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 324 |  |
M | 334 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 329 |  |
M | 343 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 334 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_sort_appends_ext (24 to 61 mail-index-transaction-sort-appends.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 52 | Pointer not checked for null before use : ext_rec | CERT EXP08-C,EXP34-C
| 50 |  |
M | 54 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 42 | Pointer not checked for null before use : ext_rec_arrays | CERT EXP08-C,EXP34-C
| 40 |  |
M | 31 | Procedure contains UR data flow anomalies. : new_array.arr.buffer | CERT EXP33-C
| 59 |  |
M | 31 | Procedure contains UR data flow anomalies. : new_array.arr.element_size | CERT EXP33-C
| 59 |  |
M | 31 | Procedure contains UR data flow anomalies. : new_array.v | CERT EXP33-C
| 59 |  |
M | 31 | Procedure contains UR data flow anomalies. : new_array.v_modifiable | CERT EXP33-C
| 59 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-sort-appends.c | 31 | mail-index-transaction-sort-appends.c | 59 | new_array.arr.buffer
mail-index-transaction-sort-appends.c | 31 | mail-index-transaction-sort-appends.c | 59 | new_array.arr.element_size
mail-index-transaction-sort-appends.c | 31 | mail-index-transaction-sort-appends.c | 59 | new_array.v
mail-index-transaction-sort-appends.c | 31 | mail-index-transaction-sort-appends.c | 59 | new_array.v_modifiable

[ | Top of Report | | | Procedure Table | | | Contents | ]

sort_appends_seq_range (63 to 101 mail-index-transaction-sort-appends.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 95 | Pointer not checked for null before use : range | CERT EXP08-C,EXP34-C
| 93 |  |
M | 86 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 82 |  |
M | 86 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 82 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_sort_appends (130 to 180 mail-index-transaction-sort-appends.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 155 | Pointer not checked for null before use : new_uid_map | CERT EXP08-C,EXP34-C
| 151 |  |
M | 165 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 163 |  |
M | 165 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 170 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 168 |  |
M | 173 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 168 |  |
M | 176 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 168 |  |
M | 176 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 177 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 168 |  |
M | 177 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 161 | Pointer not checked for null before use : sorted_recs | CERT EXP08-C,EXP34-C
| 155 |  |
M | 147 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 141 |  |
M | 146 | Pointer not checked for null before use : new_uid_map | CERT EXP08-C,EXP34-C
| 144 |  |
M | 170 | Pointer not checked for null before use : old_to_newseq_map | CERT EXP08-C,EXP34-C
| 165 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_reset_v (24 to 104 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 91 | Sizeof argument is a pointer. | CERT EXP01-C
M | 92 | Sizeof argument is a pointer. | CERT EXP01-C
M | 46 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 45 |  |
M | 46 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 45 | Pointer not checked for null before use : (ext_hdr)->data | CERT EXP08-C,EXP34-C
| 45 |  |
M | 46 | Pointer not checked for null before use : (ext_hdr)->mask | CERT EXP08-C,EXP34-C
| 46 |  |
M | 45 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 46 |  |
M | 45 | Attempt to read from freed memory. : default_pool | CERT MEM30-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_day_headers (119 to 162 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 154 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 129 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_append (164 to 199 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 191 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 190 |  |
M | 185 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 183 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_append_finish_uids (201 to 241 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 232 | Pointer not checked for null before use : range | CERT EXP08-C,EXP34-C
| 231 |  |
M | 238 | Pointer not checked for null before use : range | CERT EXP08-C,EXP34-C
| 237 |  |
M | 232 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 214 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_uid (243 to 256 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 252 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 251 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_modseq (258 to 277 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 272 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 271 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_expunge_last_append_ext (293 to 308 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 298 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 305 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-update.c | 298 | mail-index-transaction-update.c | 305 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_expunge_last_append (310 to 352 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 314 | Procedure contains UR data flow anomalies. : i | CERT EXP33-C
| 340 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-update.c | 314 | mail-index-transaction-update.c | 340 | i
mail-index-transaction-update.c | 314 | mail-index-transaction-update.c | 341 | i

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_expunge_guid (361 to 391 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 389 | Sizeof argument is a pointer. | CERT EXP01-C
M | 388 | Pointer not checked for null before use : expunge | CERT EXP08-C,EXP34-C
| 387 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_insert_flag_update (437 to 543 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 494 | Pointer not checked for null before use : updates | CERT EXP08-C,EXP34-C
| 491 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_flags_range (562 to 659 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 578 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 577 |  |
M | 625 | Pointer not checked for null before use : last_update | CERT EXP08-C,EXP34-C
| 624 |  |
M | 624 | Pointer not checked for null before use : last_update | CERT EXP08-C,EXP34-C
| 620 |  |
M | 647 | Pointer not checked for null before use : last_update | CERT EXP08-C,EXP34-C
| 620 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_header (668 to 688 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 672 | Sizeof argument is a pointer. | CERT EXP01-C
M | 673 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_resize (690 to 732 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 706 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 705 |  |
M | 712 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 711 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_reset (734 to 751 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 748 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 745 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_reset_inc (753 to 763 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 758 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 432) |  |
M | 761 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 758 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_has_ext_updates (765 to 777 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 768 | Declaration types do not match across a system. : array | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_update_reset (814 to 825 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 822 | Pointer not checked for null before use : array | CERT EXP08-C,EXP34-C
| 821 |  |
M | 819 | Declaration types do not match across a system. : array | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_set_reset_id (827 to 860 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 838 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 837 |  |
M | 840 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 839 |  |
M | 840 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 856 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 840 |  |
M | 856 | Attempt to read from freed memory. : default_pool | CERT MEM30-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_header_ext (862 to 887 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 876 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 875 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_ext (889 to 931 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 917 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 916 |  |
M | 925 | Pointer not checked for null before use : array | CERT EXP08-C,EXP34-C
| 922 |  |
M | 914 | Pointer not checked for null before use : intro | CERT EXP08-C,EXP34-C
| 910 |  |
M | 896 | Declaration types do not match across a system. : array | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_atomic_inc_ext (933 to 960 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 952 | Pointer not checked for null before use : array | CERT EXP08-C,EXP34-C
| 951 |  |
M | 956 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 937 | Procedure contains UR data flow anomalies. : old_diff32 | CERT EXP33-C
| 952 |  |
M | 936 | Declaration types do not match across a system. : array | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-update.c | 937 | mail-index-transaction-update.c | 952 | old_diff32

[ | Top of Report | | | Procedure Table | | | Contents | ]

keyword_update_has_changes (962 to 1008 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 984 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 982 |  |
M | 982 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 973 |  |
M | 982 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 973 |  |
M | 968 | Procedure contains UR data flow anomalies. : existing.arr.buffer | CERT EXP33-C
| 975 |  |
M | 968 | Procedure contains UR data flow anomalies. : existing.arr.element_size | CERT EXP33-C
| 975 |  |
M | 968 | Procedure contains UR data flow anomalies. : existing.v | CERT EXP33-C
| 975 |  |
M | 968 | Procedure contains UR data flow anomalies. : existing.v_modifiable | CERT EXP33-C
| 975 |  |
M | 970 | Procedure contains UR data flow anomalies. : existing_count | CERT EXP33-C
| 978 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-update.c | 968 | mail-index-transaction-update.c | 975 | existing.arr.buffer
mail-index-transaction-update.c | 968 | mail-index-transaction-update.c | 976 | existing.arr.buffer
mail-index-transaction-update.c | 968 | mail-index-transaction-update.c | 975 | existing.arr.element_size
mail-index-transaction-update.c | 968 | mail-index-transaction-update.c | 976 | existing.arr.element_size
mail-index-transaction-update.c | 968 | mail-index-transaction-update.c | 975 | existing.v
mail-index-transaction-update.c | 968 | mail-index-transaction-update.c | 975 | existing.v_modifiable
mail-index-transaction-update.c | 970 | mail-index-transaction-update.c | 978 | existing_count
mail-index-transaction-update.c | 970 | mail-index-transaction-update.c | 989 | existing_count

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_keywords (1010 to 1085 mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1051 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 1049 |  |
M | 1059 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 1057 |  |
M | 1076 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 1074 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_close (28 to 50 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 44 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 42 |  |
M | 49 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 37 |  |
M | 49 | Attempt to read from freed memory. : default_pool | CERT MEM30-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_get_header (62 to 80 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 79 | Local structure returned in function result : hdr |
M | 74 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 71 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_apply_flag_updates (82 to 128 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 127 | Local structure returned in function result : trec |
M | 124 | Pointer not checked for null before use : trec | CERT EXP08-C,EXP34-C
| 123 |  |
M | 125 | Pointer not checked for null before use : trec | CERT EXP08-C,EXP34-C
| 124 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_lookup_full (130 to 152 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 147 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 146 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_lookup_seq_range (166 to 222 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 189 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 188 |  |
M | 203 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 202 |  |
M | 216 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 215 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_lookup_first (224 to 253 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 248 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 247 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_return_updated_ext (332 to 388 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 350 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 349 |  |
M | 354 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 353 |  |
M | 340 | Procedure contains UR data flow anomalies. : ext_idx | CERT EXP33-C
| 353 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-view.c | 340 | mail-index-transaction-view.c | 353 | ext_idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_lookup_ext_full (390 to 428 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 410 | Pointer not checked for null before use : ext_buf | CERT EXP08-C,EXP34-C
| 409 |  |
M | 414 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 412 |  |
M | 399 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 411 |  |
M | 398 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction-view.c | 399 | mail-index-transaction-view.c | 411 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

tview_ext_get_reset_id (441 to 458 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 453 | Pointer not checked for null before use : reset_id_p | CERT EXP08-C,EXP34-C
| 452 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_open_updated_view (474 to 495 mail-index-transaction-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 488 | Pointer not checked for null before use : tview | CERT EXP08-C,EXP34-C
| 487 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_is_expunged (22 to 36 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 25 | Procedure contains UR data flow anomalies. : key.guid_128 | CERT EXP33-C
| 34 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction.c | 25 | mail-index-transaction.c | 34 | key.guid_128

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_unref (43 to 57 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 56 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 51 |  |
M | 57 | Memory not freed after last reference. : t | CERT MEM00-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_get_next_uid (59 to 90 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 81 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 80 |  |
M | 86 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 85 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_refresh (92 to 121 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 118 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 110 |  |
M | 114 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 102 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_commit_real (123 to 165 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 136 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 134 |  |
M | 136 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 134 |  |
M | 138 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 136 |  |
M | 144 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 136 |  |
M | 161 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 144 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_commit_v (167 to 200 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 198 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 194 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_commit (207 to 212 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 209 | Procedure contains UR data flow anomalies. : result.commit_size | CERT EXP33-C
| 211 |  |
M | 209 | Procedure contains UR data flow anomalies. : result.ignored_modseq_changes | CERT EXP33-C
| 211 |  |
M | 209 | Procedure contains UR data flow anomalies. : result.ignored_uid_changes | CERT EXP33-C
| 211 |  |
M | 209 | Procedure contains UR data flow anomalies. : result.log_file_offset | CERT EXP33-C
| 211 |  |
M | 209 | Procedure contains UR data flow anomalies. : result.log_file_seq | CERT EXP33-C
| 211 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-transaction.c | 209 | mail-index-transaction.c | 211 | result.commit_size
mail-index-transaction.c | 209 | mail-index-transaction.c | 211 | result.ignored_modseq_changes
mail-index-transaction.c | 209 | mail-index-transaction.c | 211 | result.ignored_uid_changes
mail-index-transaction.c | 209 | mail-index-transaction.c | 211 | result.log_file_offset
mail-index-transaction.c | 209 | mail-index-transaction.c | 211 | result.log_file_seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_commit_full (214 to 245 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 237 | Pointer not checked for null before use : result_r | CERT EXP08-C,EXP34-C
| 236 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_begin (261 to 293 mail-index-transaction.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 292 | Local structure returned in function result : t |
M | 272 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 271 |  |
M | 271 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 434) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_pack_num (59 to 70 mail-index-util.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 64 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 63 |  |
M | 69 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 68 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_unpack_num (72 to 104 mail-index-util.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 86 | Pointer not checked for null before use : c | CERT EXP08-C,EXP34-C
| 91 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_seq_array_lookup (114 to 123 mail-index-util.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 121 | Pointer not checked for null before use : base | CERT EXP08-C,EXP34-C
| 120 |  |
M | 118 | Procedure contains UR data flow anomalies. : count | CERT EXP33-C
| 121 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-util.c | 118 | mail-index-util.c | 121 | count

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_seq_array_add (125 to 159 mail-index-util.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 147 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 144 |  |
M | 130 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 142 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-util.c | 130 | mail-index-util.c | 142 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_sync_set_log_view_range (44 to 94 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 88 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 71 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_sync_expunges2seqs (96 to 122 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 106 | Pointer not checked for null before use : src | CERT EXP08-C,EXP34-C
| 105 |  |
M | 108 | Pointer not checked for null before use : dest | CERT EXP08-C,EXP34-C
| 105 |  |
M | 99 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_sync_get_expunges (151 to 183 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 172 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 165 |  |
M | 155 | Declaration types do not match across a system. : view | CERT ARR31-C
M | 157 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

have_existing_expunges (185 to 198 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 189 | Procedure contains UR data flow anomalies. : seq1 | CERT EXP33-C
| 193 |  |
M | 189 | Procedure contains UR data flow anomalies. : seq2 | CERT EXP33-C
| 193 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view-sync.c | 189 | mail-index-view-sync.c | 193 | seq1
mail-index-view-sync.c | 189 | mail-index-view-sync.c | 193 | seq2

[ | Top of Report | | | Procedure Table | | | Contents | ]

have_existing_guid_expunge (200 to 214 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 206 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 210 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view-sync.c | 206 | mail-index-view-sync.c | 210 | seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_sync_have_expunges (216 to 251 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 233 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 225 |  |
M | 219 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_sync_lost_keywords_equal (264 to 277 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 276 | Sizeof argument is a pointer. | CERT EXP01-C
M | 276 | Pointer not checked for null before use : old_idx | CERT EXP08-C,EXP34-C
| 274 |  |
M | 276 | Pointer not checked for null before use : new_idx | CERT EXP08-C,EXP34-C
| 275 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_sync_update_keywords (279 to 317 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 299 | Pointer not checked for null before use : kw_idx | CERT EXP08-C,EXP34-C
| 288 |  |
M | 299 | Pointer not checked for null before use : kw_names | CERT EXP08-C,EXP34-C
| 291 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_sync_apply_lost_changes (319 to 399 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 335 | Pointer not checked for null before use : old_rec | CERT EXP08-C,EXP34-C
| 331 |  |
M | 335 | Pointer not checked for null before use : new_rec | CERT EXP08-C,EXP34-C
| 332 |  |
M | 384 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 383 |  |
M | 385 | Pointer not checked for null before use : modseqp | CERT EXP08-C,EXP34-C
| 384 |  |
M | 373 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 369 |  |
M | 369 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 352 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_sync_get_log_lost_changes (401 to 483 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 433 | Pointer not checked for null before use : old_rec | CERT EXP08-C,EXP34-C
| 431 |  |
M | 433 | Pointer not checked for null before use : new_rec | CERT EXP08-C,EXP34-C
| 432 |  |
M | 454 | Pointer not checked for null before use : old_rec | CERT EXP08-C,EXP34-C
| 453 |  |
M | 417 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 436) |  |
M | 477 | Pointer not checked for null before use : expunge_count_r | CERT EXP08-C,EXP34-C
| 468 |  |
M | 423 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 417 |  |
M | 466 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 461 |  |
M | 461 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 466 |  |
M | 444 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 435 |  |
M | 476 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 425 |  |
M | 405 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_sync_init_fix (485 to 507 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 502 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 494 |  |
M | 487 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_sync_begin (509 to 633 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 540 | Local structure returned in function result : ctx |
M | 546 | Local structure returned in function result : ctx |
M | 552 | Local structure returned in function result : ctx |
M | 570 | Local structure returned in function result : ctx |
M | 577 | Local structure returned in function result : ctx |
M | 632 | Local structure returned in function result : ctx |
M | 528 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 526 |  |
M | 529 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 528 |  |
M | 561 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 559 |  |
M | 562 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 561 |  |
M | 618 | Pointer not checked for null before use : tmp_map | CERT EXP08-C,EXP34-C
| 616 |  |
M | 565 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 562 |  |
M | 607 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 597 |  |
M | 626 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 607 |  |
M | 581 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 549 |  |
M | 616 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 588 |  |
M | 588 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 562 |  |
M | 516 | Procedure contains UR data flow anomalies. : reset | CERT EXP33-C
| 584 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view-sync.c | 516 | mail-index-view-sync.c | 584 | reset

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_sync_want (653 to 694 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 657 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_sync_get_next_transaction (696 to 750 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 722 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 720 |  |
M | 700 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_sync_get_rec (752 to 822 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 798 | Pointer not checked for null before use : uids | CERT EXP08-C,EXP34-C
| 796 |  |
M | 767 | Pointer not checked for null before use : update | CERT EXP08-C,EXP34-C
| 774 |  |
M | 757 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_sync_next_lost (824 to 842 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 838 | Pointer not checked for null before use : range | CERT EXP08-C,EXP34-C
| 831 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_sync_next (844 to 866 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 863 | Pointer not checked for null before use : ctx.data | CERT EXP08-C,EXP34-C
| 854 |  |
M | 863 | Pointer not checked for null before use : ctx.hidden | CERT EXP08-C,EXP34-C
| 854 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_sync_commit (896 to 956 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 954 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 944 |  |
M | 918 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 915 |  |
M | 944 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 918 |  |
M | 900 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_add_hidden_transaction (958 to 972 mail-index-view-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 969 | Pointer not checked for null before use : area | CERT EXP08-C,EXP34-C
| 968 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_clone (9 to 34 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 12 | Sizeof argument is a pointer. | CERT EXP01-C
M | 13 | Pointer not checked for null before use : dest | CERT EXP08-C,EXP34-C
| 12 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_close (41 to 56 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 55 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 51 |  |
M | 49 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 45 |  |
M | 51 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 49 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_unref_maps (115 to 128 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 125 | Pointer not checked for null before use : maps | CERT EXP08-C,EXP34-C
| 123 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_lookup_full (141 to 213 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 171 | Local structure returned in function result : rec |
M | 189 | Local structure returned in function result : rec |
M | 206 | Local structure returned in function result : head_rec |
M | 211 | Local structure returned in function result : rec |
M | 153 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 152 |  |
M | 158 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 155 |  |
M | 196 | Pointer not checked for null before use : head_rec | CERT EXP08-C,EXP34-C
| 195 |  |
M | 195 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 192 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_lookup_first (231 to 264 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 235 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | 235 | Macro replacement list needs parentheses. | CERT PRE02-C
M | 259 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 258 |  |
M | 239 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 251 |  |
M | 239 | Procedure contains UR data flow anomalies. : seq2 | CERT EXP33-C
| 251 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 239 | mail-index-view.c | 251 | seq
mail-index-view.c | 239 | mail-index-view.c | 251 | seq2

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_data_lookup_keywords (266 to 309 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 282 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 305 | Pointer not checked for null before use : keyword_idx_map | CERT EXP08-C,EXP34-C
| 288 |  |
M | 272 | Procedure contains UR data flow anomalies. : keyword_count | CERT EXP33-C
| 299 |  |
M | 274 | Procedure contains UR data flow anomalies. : record_size | CERT EXP33-C
| 282 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 272 | mail-index-view.c | 299 | keyword_count
mail-index-view.c | 274 | mail-index-view.c | 282 | record_size

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_lookup_keywords (311 to 320 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 317 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 315 | Procedure contains UR data flow anomalies. : data | CERT EXP33-C
| 317 |  |
M | 315 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 315 | mail-index-view.c | 317 | data

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_map_lookup_ext_full (322 to 335 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 327 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 332 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 327 | mail-index-view.c | 332 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_lookup_ext_full (337 to 346 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 345 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 344 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_get_header_ext (348 to 370 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 368 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 367 |  |
M | 360 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 357 |  |
M | 353 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 367 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 353 | mail-index-view.c | 367 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_ext_get_reset_id (372 to 385 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 383 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 382 |  |
M | 377 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 382 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 377 | mail-index-view.c | 382 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_close (387 to 398 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 389 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_lookup_full (419 to 426 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 423 | Procedure contains UR data flow anomalies. : expunged | CERT EXP33-C
| 425 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 423 | mail-index-view.c | 425 | expunged

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_is_expunged (428 to 435 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 431 | Procedure contains UR data flow anomalies. : expunged | CERT EXP33-C
| 433 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 431 | mail-index-view.c | 433 | expunged

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_lookup_keywords (437 to 454 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 450 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 449 |  |
M | 451 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 448 |  |
M | 446 | Procedure contains UR data flow anomalies. : data | CERT EXP33-C
| 442 |  |
M | 443 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 449 |  |
M | 442 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 446 | mail-index-view.c | 453 | data
mail-index-view.c | 443 | mail-index-view.c | 449 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_lookup_view_flags (462 to 477 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 472 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 471 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_get_size (549 to 577 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 572 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 570 |  |
M | 574 | Pointer not checked for null before use : ext | CERT EXP08-C,EXP34-C
| 570 |  |
M | 555 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 570 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 555 | mail-index-view.c | 570 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_open_with_map (593 to 618 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 617 | Local structure returned in function result : view |
M | 600 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 599 |  |
M | 599 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 437) |  |
M | 597 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_get_ext (625 to 634 mail-index-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 628 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 633 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-view.c | 628 | mail-index-view.c | 633 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_create_backup (16 to 48 mail-index-write.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 22 | Pointer not checked for null before use : backup_path | CERT EXP08-C,EXP34-C
| 21 |  |
M | 23 | Pointer not checked for null before use : tmp_backup_path | CERT EXP08-C,EXP34-C
| 22 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_recreate (50 to 110 mail-index-write.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 68 | Sizeof argument is a pointer. | CERT EXP01-C
M | 68 | Sizeof argument is a pointer. | CERT EXP01-C
M | 66 | Pointer not checked for null before use : output | CERT EXP08-C,EXP34-C
| 65 |  |
M | 104 | Pointer not checked for null before use : path | CERT EXP08-C,EXP34-C
| 61 |  |
M | 95 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 90 |  |
M | 90 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 83 |  |
M | 98 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 95 |  |
M | 105 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 98 |  |
M | 76 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 61 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_write_map_over (112 to 158 mail-index-write.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 154 | Sizeof argument is a pointer. | CERT EXP01-C
M | 154 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_has_last_changed (160 to 174 mail-index-write.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 171 | Local structure returned in function result : hdr |
M | 162 | Procedure contains UR data flow anomalies. : hdr.base_header_size | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.compat_flags | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.day_first_uid | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.day_stamp | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.deleted_messages_count | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.first_deleted_uid_lowwater | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.first_recent_uid | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.first_unseen_uid_lowwater | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.flags | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.header_size | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.indexid | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.log_file_head_offset | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.log_file_seq | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.log_file_tail_offset | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.major_version | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.messages_count | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.minor_version | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.next_uid | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.record_size | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.seen_messages_count | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.sync_size | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.sync_stamp | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.uid_validity | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.unused | CERT EXP33-C
| 165 |  |
M | 162 | Procedure contains UR data flow anomalies. : hdr.unused_old_recent_messages_count | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
| 165 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.base_header_size
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.compat_flags
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.day_first_uid
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.day_stamp
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.deleted_messages_count
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.first_deleted_uid_lowwater
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.first_recent_uid
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.first_unseen_uid_lowwater
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.flags
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.header_size
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.indexid
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.log_file_head_offset
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.log_file_seq
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.log_file_tail_offset
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.major_version
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.messages_count
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.minor_version
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.next_uid
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.record_size
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.seen_messages_count
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.sync_size
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.sync_stamp
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.uid_validity
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.unused
mail-index-write.c | 162 | mail-index-write.c | 165 | hdr.unused_old_recent_messages_count

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_write (180 to 276 mail-index-write.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 239 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 238 |  |
M | 258 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 246 |  |
M | 229 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 218 |  |
M | 246 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 229 |  |
M | 275 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 238 |  |
M | 185 | Procedure contains UR data flow anomalies. : lock_id | CERT EXP33-C
| 232 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index-write.c | 185 | mail-index-write.c | 232 | lock_id
mail-index-write.c | 185 | mail-index-write.c | 254 | lock_id

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_alloc (29 to 61 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 60 | Local structure returned in function result : index |
M | 34 | Pointer not checked for null before use : index | CERT EXP08-C,EXP34-C
| 33 |  |
M | 33 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 439) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_free (63 to 85 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 80 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 71 |  |
M | 81 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 80 |  |
M | 81 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 82 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 81 |  |
M | 82 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 83 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 82 |  |
M | 83 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 84 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 83 |  |
M | 84 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 84 | Pointer not checked for null before use : (index)->gid_origin | CERT EXP08-C,EXP34-C
| 80 |  |
M | 84 | Pointer not checked for null before use : (index)->error | CERT EXP08-C,EXP34-C
| 81 |  |
M | 84 | Pointer not checked for null before use : (index)->dir | CERT EXP08-C,EXP34-C
| 82 |  |
M | 84 | Pointer not checked for null before use : (index)->prefix | CERT EXP08-C,EXP34-C
| 83 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_set_permissions (95 to 103 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 101 | free parameter is not heap item. | CERT MEM34-C
M | 101 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 439) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_register (113 to 141 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 140 | Local structure returned in function result : rext |
M | 139 | Pointer not checked for null before use : rext.expunge_context | CERT EXP08-C,EXP34-C
| 132 |  |
M | 139 | Pointer not checked for null before use : rext.name | CERT EXP08-C,EXP34-C
| 133 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_register_expunge_handler (161 to 174 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 169 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 168 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_unregister_expunge_handler (176 to 185 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 182 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 181 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_register_sync_handler (187 to 198 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 194 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 193 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_unregister_sync_handler (200 to 210 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 206 | Pointer not checked for null before use : rext | CERT EXP08-C,EXP34-C
| 205 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_keyword_lookup (233 to 249 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 236 | Procedure contains UR data flow anomalies. : value | CERT EXP33-C
| 241 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-index.c | 236 | mail-index.c | 241 | value

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_keyword_lookup_or_create (251 to 268 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 265 | Pointer not checked for null before use : keyword_dup | CERT EXP08-C,EXP34-C
| 262 |  |
M | 266 | Pointer not checked for null before use : idx_r | CERT EXP08-C,EXP34-C
| 263 |  |
M | 267 | Pointer not checked for null before use : keyword | CERT EXP08-C,EXP34-C
| 262 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_keywords_create (275 to 311 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 291 | Sizeof argument is a pointer. | CERT EXP01-C
M | 287 | Local structure returned in function result : k |
M | 310 | Local structure returned in function result : k |
M | 285 | Pointer not checked for null before use : k | CERT EXP08-C,EXP34-C
| 284 |  |
M | 293 | Pointer not checked for null before use : k | CERT EXP08-C,EXP34-C
| 291 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_keywords_create_from_indexes (313 to 347 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 331 | Sizeof argument is a pointer. | CERT EXP01-C
M | 327 | Local structure returned in function result : k |
M | 346 | Local structure returned in function result : k |
M | 325 | Pointer not checked for null before use : k | CERT EXP08-C,EXP34-C
| 324 |  |
M | 333 | Pointer not checked for null before use : k | CERT EXP08-C,EXP34-C
| 331 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_keywords_unref (354 to 363 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 363 | Memory not freed after last reference. : keywords | CERT MEM00-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_try_open (393 to 414 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 409 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 404 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_create_tmp_file (416 to 435 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 426 | Pointer not checked for null before use : path | CERT EXP08-C,EXP34-C
| 424 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_open_files (437 to 495 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 475 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 474 |  |
M | 493 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 492 |  |
M | 461 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 450 |  |
M | 479 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 478 |  |
M | 450 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 443 |  |
M | 474 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 471 |  |
M | 492 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 488 |  |
M | 471 | Pointer not checked for null before use : index.nodiskspace | CERT EXP08-C,EXP34-C
| 450 |  |
M | 471 | Pointer not checked for null before use : index.error | CERT EXP08-C,EXP34-C
| 450 |  |
M | 488 | Pointer not checked for null before use : index.error | CERT EXP08-C,EXP34-C
| 471 |  |
M | 492 | Pointer not checked for null before use : index.filepath | CERT EXP08-C,EXP34-C
| 488 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_open (497 to 540 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 533 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 531 |  |
M | 533 | Pointer not checked for null before use : index.cache | CERT EXP08-C,EXP34-C
| 531 |  |
M | 533 | Pointer not checked for null before use : index.fd | CERT EXP08-C,EXP34-C
| 531 |  |
M | 533 | Pointer not checked for null before use : index.error | CERT EXP08-C,EXP34-C
| 531 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_close (570 to 587 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 580 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 579 |  |
M | 579 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 577 |  |
M | 582 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 580 |  |
M | 584 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 582 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_unlink (589 to 622 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 603 | Pointer not checked for null before use : path | CERT EXP08-C,EXP34-C
| 602 |  |
M | 608 | Pointer not checked for null before use : path | CERT EXP08-C,EXP34-C
| 606 |  |
M | 613 | Pointer not checked for null before use : path | CERT EXP08-C,EXP34-C
| 612 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_reopen_if_changed (624 to 661 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 660 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 658 |  |
M | 660 | Pointer not checked for null before use : index.error | CERT EXP08-C,EXP34-C
| 658 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_set_error (676 to 693 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 689 | Pointer not checked for null before use : (index)->error | CERT EXP08-C,EXP34-C
| 686 |  |
M | 680 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 439) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_move_to_memory (700 to 744 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 713 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 711 |  |
M | 713 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 727 | Pointer not checked for null before use : map | CERT EXP08-C,EXP34-C
| 725 |  |
M | 725 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 713 |  |
M | 732 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 726 |  |
M | 740 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 732 |  |
M | 725 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 732 | Attempt to read from freed memory. : default_pool | CERT MEM30-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_get_modification_time (763 to 778 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 775 | User input not checked before use. : st | CERT FIO30-C
| 771 |  |
M | 772 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 767 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_fchown (780 to 810 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 809 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 798 |  |
M | 809 | Pointer not checked for null before use : index.error | CERT EXP08-C,EXP34-C
| 798 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_file_set_syscall_error (827 to 854 mail-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 844 | Pointer not checked for null before use : function | CERT EXP08-C,EXP34-C
| 843 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_buffer_move_to_memory (37 to 58 mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 50 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 45 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_buffer_write (60 to 139 mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 72 | Sizeof argument is a pointer. | CERT EXP01-C
M | 81 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 80 |  |
M | 92 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 89 |  |
M | 108 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 105 |  |
M | 118 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 115 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_append_sync_offset_if_needed (141 to 174 mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 168 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 167 |  |
M | 148 | Procedure contains UR data flow anomalies. : buf.priv | CERT EXP33-C
| 166 |  |
M | 148 | Procedure contains UR data flow anomalies. : buf.used | CERT EXP33-C
| 166 |  |
M | 149 | Procedure contains UR data flow anomalies. : update_data | CERT EXP33-C
| 166 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-transaction-log-append.c | 148 | mail-transaction-log-append.c | 166 | buf.priv
mail-transaction-log-append.c | 148 | mail-transaction-log-append.c | 166 | buf.used
mail-transaction-log-append.c | 149 | mail-transaction-log-append.c | 166 | update_data

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_append_locked (176 to 202 mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 198 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 189 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_append_begin (204 to 220 mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 214 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 213 |  |
M | 213 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 210 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_append_commit (222 to 237 mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 230 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 440) |  |
M | 235 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 232 |  |
M | 232 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 230 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_mark_corrupted (26 to 42 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 37 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_set_corrupted (44 to 63 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 56 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 52 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_alloc (65 to 76 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 75 | Local structure returned in function result : file |
M | 72 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 71 |  |
M | 71 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 441) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_free (78 to 115 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 112 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 111 |  |
M | 112 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 112 | Pointer not checked for null before use : (file)->filepath | CERT EXP08-C,EXP34-C
| 111 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 441) |  |
M | 88 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 88 |  |
M | 111 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 108 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_add_to_list (170 to 188 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 180 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 180 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_init_hdr (190 to 248 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 198 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 197 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_alloc_in_memory (250 to 266 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 261 | Attempt to use already freed object. | CERT MEM31-C
M | 262 | Attempt to use already freed object. | CERT MEM31-C
M | 262 | Sizeof argument is a pointer. | CERT EXP01-C
M | 265 | Attempt to use already freed object. | CERT MEM31-C
M | 265 | Local structure returned in function result : file |
M | 256 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 255 |  |
M | 255 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 441) |  |
M | 257 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 256 |  |
M | 261 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 256 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_read_header (377 to 395 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 382 | Sizeof argument is a pointer. | CERT EXP01-C
M | 389 | Sizeof argument is a pointer. | CERT EXP01-C
M | 393 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_read_hdr (397 to 506 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 446 | Sizeof argument is a pointer. | CERT EXP01-C
M | 449 | Sizeof argument is a pointer. | CERT EXP01-C
M | 496 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 491 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_stat (508 to 525 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 520 | User input not checked before use. : st | CERT FIO30-C
| 514 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_create2 (540 to 668 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 614 | Sizeof argument is a pointer. | CERT EXP01-C
M | 645 | Pointer not checked for null before use : path2 | CERT EXP08-C,EXP34-C
| 644 |  |
M | 590 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 588 |  |
M | 593 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 590 |  |
M | 629 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 625 |  |
M | 615 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 603 |  |
M | 652 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 647 |  |
M | 666 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 652 |  |
M | 603 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 598 |  |
M | 666 | Pointer not checked for null before use : (file)->hdr.hdr_size | CERT EXP08-C,EXP34-C
| 603 |  |
M | 666 | Pointer not checked for null before use : (file)->hdr.file_seq | CERT EXP08-C,EXP34-C
| 603 |  |
M | 666 | Pointer not checked for null before use : (file)->hdr.initial_modseq | CERT EXP08-C,EXP34-C
| 603 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_create (670 to 706 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 700 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 696 |  |
M | 674 | Procedure contains UR data flow anomalies. : dotlock | CERT EXP33-C
| 701 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-transaction-log-file.c | 674 | mail-transaction-log-file.c | 701 | dotlock

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_open (708 to 762 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 731 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 725 |  |
M | 760 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 725 |  |
M | 728 | Pointer not checked for null before use : file.st_dev | CERT EXP08-C,EXP34-C
| 725 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_file_track_mailbox_sync_offset_hdr (764 to 812 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 772 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

modseq_cache_get_offset (888 to 913 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 893 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

modseq_cache_get_modseq (915 to 940 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 920 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_get_synced_record (942 to 966 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 954 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 949 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_get_highest_modseq_at (968 to 1027 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1021 | Sizeof argument is a pointer. | CERT EXP01-C
M | 1004 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1000 |  |
M | 1013 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1000 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_get_modseq_next_offset (1029 to 1100 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1094 | Sizeof argument is a pointer. | CERT EXP01-C
M | 1085 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1076 |  |
M | 1068 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1063 |  |
M | 1076 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1063 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_file_track_sync (1102 to 1147 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1107 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_sync (1149 to 1243 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1170 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 1168 |  |
M | 1168 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 1160 |  |
M | 1176 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1185 |  |
M | 1155 | Procedure contains UR data flow anomalies. : size | CERT EXP33-C
| 1160 |  |
M | 1153 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-transaction-log-file.c | 1155 | mail-transaction-log-file.c | 1160 | size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_insert_read (1245 to 1277 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1257 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 1256 |  |
M | 1249 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_read_more (1279 to 1309 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1291 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 1290 |  |
M | 1282 | Declaration types do not match across a system. : data | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_read (1332 to 1385 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1362 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1356 |  |
M | 1376 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1367 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_map_mmap (1452 to 1501 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1466 | User input not checked before use. : st | CERT FIO30-C
| 1464 |  |
M | 1489 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1485 |  |
M | 1494 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1485 |  |
M | 1496 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1494 |  |
M | 1485 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1496 |  |
M | 1489 | Pointer not checked for null before use : file.sync_highest_modseq | CERT EXP08-C,EXP34-C
| 1496 |  |
M | 1489 | Pointer not checked for null before use : file.index_undeleted_offset | CERT EXP08-C,EXP34-C
| 1496 |  |
M | 1496 | Pointer not checked for null before use : file.index_undeleted_offset | CERT EXP08-C,EXP34-C
| 1477 |  |
M | 1489 | Pointer not checked for null before use : file.index_deleted_offset | CERT EXP08-C,EXP34-C
| 1496 |  |
M | 1496 | Pointer not checked for null before use : file.index_deleted_offset | CERT EXP08-C,EXP34-C
| 1477 |  |
M | 1489 | Pointer not checked for null before use : file.max_tail_offset | CERT EXP08-C,EXP34-C
| 1496 |  |
M | 1489 | Pointer not checked for null before use : file.saved_tail_offset | CERT EXP08-C,EXP34-C
| 1496 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_map (1503 to 1566 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1565 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1561 |  |
M | 1560 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1549 |  |
M | 1549 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1521 |  |
M | 1561 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1560 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_move_to_memory (1568 to 1601 mail-transaction-log-file.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 1599 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1596 |  |
M | 1596 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 1587 |  |
M | 1581 | Pointer not checked for null before use : buf | CERT EXP08-C,EXP34-C
| 1580 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_view_open (8 to 25 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 24 | Local structure returned in function result : view |
M | 14 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 13 |  |
M | 20 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 19 |  |
M | 20 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 19 |  |
M | 13 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 442) |  |
M | 11 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_view_unref_all (27 to 38 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 35 | Pointer not checked for null before use : files | CERT EXP08-C,EXP34-C
| 33 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_view_close (40 to 59 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 58 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 55 |  |
M | 54 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 49 |  |
M | 47 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 47 |  |
M | 42 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_views_close (61 to 67 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 63 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_view_set (69 to 289 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 232 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 231 |  |
M | 210 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 209 |  |
M | 188 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 154 |  |
M | 231 | Pointer not checked for null before use : files | CERT EXP08-C,EXP34-C
| 229 |  |
M | 99 | Pointer not checked for null before use : tail | CERT EXP08-C,EXP34-C
| 90 |  |
M | 258 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 236 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_view_get_last (335 to 375 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 363 | Pointer not checked for null before use : cur | CERT EXP08-C,EXP34-C
| 362 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_view_is_last (377 to 383 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 379 | Procedure contains UR data flow anomalies. : cur | CERT EXP33-C
| 382 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-transaction-log-view.c | 379 | mail-transaction-log-view.c | 382 | cur

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_view_is_uid_range_valid (407 to 440 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 427 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 426 |  |
M | 412 | Procedure contains UR data flow anomalies. : prev | CERT EXP33-C
| 433 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-transaction-log-view.c | 412 | mail-transaction-log-view.c | 433 | prev

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_view_is_record_valid (442 to 545 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 449 | Procedure contains UR data flow anomalies. : uid_buf.data | CERT EXP33-C
| 532 |  |
M | 449 | Procedure contains UR data flow anomalies. : uid_buf.priv | CERT EXP33-C
| 532 |  |
M | 449 | Procedure contains UR data flow anomalies. : uid_buf.used | CERT EXP33-C
| 532 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-transaction-log-view.c | 449 | mail-transaction-log-view.c | 532 | uid_buf.data
mail-transaction-log-view.c | 449 | mail-transaction-log-view.c | 532 | uid_buf.priv
mail-transaction-log-view.c | 449 | mail-transaction-log-view.c | 532 | uid_buf.used

[ | Top of Report | | | Procedure Table | | | Contents | ]

log_view_get_next (547 to 624 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 581 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 579 |  |
M | 594 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 593 |  |
M | 593 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 581 |  |
M | 615 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 594 |  |
M | 557 | Procedure contains UR data flow anomalies. : file_size | CERT EXP33-C
| 581 |  |
M | 554 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-transaction-log-view.c | 557 | mail-transaction-log-view.c | 581 | file_size

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_view_next (626 to 661 mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 659 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 637 |  |
M | 631 | Procedure contains UR data flow anomalies. : data | CERT EXP33-C
| 659 |  |
M | 631 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mail-transaction-log-view.c | 631 | mail-transaction-log-view.c | 659 | data

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_alloc (32 to 49 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 48 | Local structure returned in function result : log |
M | 38 | Pointer not checked for null before use : log | CERT EXP08-C,EXP34-C
| 37 |  |
M | 37 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 443) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_open (72 to 109 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 78 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 77 |  |
M | 78 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 81 | Pointer not checked for null before use : (log)->filepath | CERT EXP08-C,EXP34-C
| 79 |  |
M | 101 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 100 |  |
M | 77 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 443) |  |
M | 95 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 78 |  |
M | 107 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 101 |  |
M | 100 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 95 |  |
M | 95 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 100 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 107 | Pointer not checked for null before use : (log)->filepath2 | CERT EXP08-C,EXP34-C
| 81 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_create (111 to 139 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 117 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 116 |  |
M | 125 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 121 |  |
M | 133 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 132 |  |
M | 137 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 132 |  |
M | 132 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 129 |  |
M | 133 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 132 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_close (141 to 151 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 149 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 146 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_free (153 to 164 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 161 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 159 |  |
M | 162 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 161 |  |
M | 162 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 163 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 162 |  |
M | 163 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 163 | Pointer not checked for null before use : (log)->filepath | CERT EXP08-C,EXP34-C
| 161 |  |
M | 163 | Pointer not checked for null before use : (log)->filepath2 | CERT EXP08-C,EXP34-C
| 162 |  |
M | 159 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 443) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_move_to_memory (166 to 189 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 178 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 177 |  |
M | 178 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 181 | Pointer not checked for null before use : (log)->filepath | CERT EXP08-C,EXP34-C
| 179 |  |
M | 187 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 186 |  |
M | 177 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 174 |  |
M | 184 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 178 |  |
M | 186 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 178 |  |
M | 184 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 186 | Attempt to read from freed memory. : default_pool | CERT MEM30-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_indexid_changed (191 to 211 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 209 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 208 |  |
M | 199 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 195 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_logs_clean (213 to 235 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 223 | Pointer not checked for null before use : next | CERT EXP08-C,EXP34-C
| 221 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_rotate (248 to 290 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 273 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 271 |  |
M | 259 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 257 |  |
M | 279 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 278 |  |
M | 288 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 257 |  |
M | 273 | User input not checked before use. : st | CERT FIO30-C
| 265 |  |
M | 279 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 278 |  |
M | 287 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 257 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_refresh (292 to 351 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 340 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 339 |  |
M | 325 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 322 |  |
M | 341 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 340 |  |
M | 348 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 340 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_find_file (372 to 423 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 412 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 411 |  |
M | 413 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 412 |  |
M | 393 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 387 |  |
M | 411 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 393 |  |
M | 393 | Pointer not checked for null before use : log.open_file | CERT EXP08-C,EXP34-C
| 387 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_lock_head (425 to 465 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 444 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 440 |  |
M | 446 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 444 |  |
M | 440 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 456 |  |
M | 456 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 446 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_sync_lock (467 to 486 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 476 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 472 |  |
M | 478 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 476 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_get_tail (503 to 513 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 508 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 508 |  |
M | 512 | Pointer not checked for null before use : tail | CERT EXP08-C,EXP34-C
| 508 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_get_mtime (522 to 538 mail-transaction-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 536 | User input not checked before use. : st | CERT FIO30-C
| 528 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_alloc_sync_dir (81 to 90 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 89 | Local structure returned in function result : sync_dir |
M | 88 | Pointer not checked for null before use : sync_dir | CERT EXP08-C,EXP34-C
| 87 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_copy_sync_dir (92 to 137 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 110 | Pointer not checked for null before use : sync_dir | CERT EXP08-C,EXP34-C
| 108 |  |
M | 123 | Pointer not checked for null before use : sync_rec | CERT EXP08-C,EXP34-C
| 122 |  |
M | 132 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 129 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_sync_dir_lookup (151 to 168 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 163 | Pointer not checked for null before use : key.name | CERT EXP08-C,EXP34-C
| 160 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_alloc_add_record (170 to 188 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 187 | Local structure returned in function result : rec |
M | 180 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 179 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_get_seq (190 to 212 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 202 | Pointer not checked for null before use : mail_hdr | CERT EXP08-C,EXP34-C
| 201 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_int (214 to 320 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 233 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 232 |  |
M | 232 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 241 |  |
M | 257 | Pointer not checked for null before use : dir | CERT EXP08-C,EXP34-C
| 228 |  |
M | 271 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 261 |  |
M | 223 | Procedure contains UR data flow anomalies. : idx | CERT EXP33-C
| 257 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mailbox-list-index-sync.c | 223 | mailbox-list-index-sync.c | 257 | idx

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_mail_sync_init (354 to 371 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 356 | Procedure contains UR data flow anomalies. : sync_rec.add_flags | CERT EXP33-C
| 368 |  |
M | 356 | Procedure contains UR data flow anomalies. : sync_rec.guid_128 | CERT EXP33-C
| 368 |  |
M | 356 | Procedure contains UR data flow anomalies. : sync_rec.keyword_idx | CERT EXP33-C
| 368 |  |
M | 356 | Procedure contains UR data flow anomalies. : sync_rec.remove_flags | CERT EXP33-C
| 368 |  |
M | 356 | Procedure contains UR data flow anomalies. : sync_rec.type | CERT EXP33-C
| 368 |  |
M | 356 | Procedure contains UR data flow anomalies. : sync_rec.uid1 | CERT EXP33-C
| 368 |  |
M | 356 | Procedure contains UR data flow anomalies. : sync_rec.uid2 | CERT EXP33-C
| 368 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mailbox-list-index-sync.c | 356 | mailbox-list-index-sync.c | 368 | sync_rec.add_flags
mailbox-list-index-sync.c | 356 | mailbox-list-index-sync.c | 368 | sync_rec.guid_128
mailbox-list-index-sync.c | 356 | mailbox-list-index-sync.c | 368 | sync_rec.keyword_idx
mailbox-list-index-sync.c | 356 | mailbox-list-index-sync.c | 368 | sync_rec.remove_flags
mailbox-list-index-sync.c | 356 | mailbox-list-index-sync.c | 368 | sync_rec.type
mailbox-list-index-sync.c | 356 | mailbox-list-index-sync.c | 368 | sync_rec.uid1
mailbox-list-index-sync.c | 356 | mailbox-list-index-sync.c | 368 | sync_rec.uid2

[ | Top of Report | | | Procedure Table | | | Contents | ]

sync_mail_sync_init2 (373 to 400 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 394 | Sizeof argument is a pointer. | CERT EXP01-C
M | 380 | Pointer not checked for null before use : mail_hdr | CERT EXP08-C,EXP34-C
| 379 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_init (402 to 441 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 427 | Pointer not checked for null before use : path | CERT EXP08-C,EXP34-C
| 418 |  |
M | 431 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 412 |  |
M | 434 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 431 |  |
M | 433 | Pointer not checked for null before use : ctx.mail_view | CERT EXP08-C,EXP34-C
| 431 |  |
M | 433 | Pointer not checked for null before use : ctx.trans | CERT EXP08-C,EXP34-C
| 431 |  |
M | 412 | Pointer not checked for null before use : NULL | CERT EXP08-C,EXP34-C
M | 423 | Pointer not checked for null before use : pool | CERT EXP08-C,EXP34-C
| 420 |  |
M | 424 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 423 |  |
M | 435 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 431 |  |
M | 408 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_more (455 to 465 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 458 | Procedure contains UR data flow anomalies. : dir | CERT EXP33-C
| 462 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mailbox-list-index-sync.c | 458 | mailbox-list-index-sync.c | 462 | dir

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_recreate_dir (522 to 676 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 573 | Pointer not checked for null before use : dir | CERT EXP08-C,EXP34-C
| 571 |  |
M | 581 | Pointer not checked for null before use : new_dir | CERT EXP08-C,EXP34-C
| 580 |  |
M | 585 | Pointer not checked for null before use : new_recs | CERT EXP08-C,EXP34-C
| 584 |  |
M | 605 | Pointer not checked for null before use : sync_recs | CERT EXP08-C,EXP34-C
| 600 |  |
M | 580 | Pointer not checked for null before use : base | CERT EXP08-C,EXP34-C
| 557 |  |
M | 535 | Procedure contains UR data flow anomalies. : base_offset | CERT EXP33-C
| 611 |  |
M | 590 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 592 |  |
M | 645 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mailbox-list-index-sync.c | 535 | mailbox-list-index-sync.c | 611 | base_offset
mailbox-list-index-sync.c | 590 | mailbox-list-index-sync.c | 592 | seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_update_dir (678 to 746 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 703 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 702 |  |
M | 737 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 698 |  |
M | 686 | Procedure contains UR data flow anomalies. : seq | CERT EXP33-C
| 719 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mailbox-list-index-sync.c | 686 | mailbox-list-index-sync.c | 719 | seq

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_write_dir (748 to 825 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 817 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 808 |  |
M | 808 | Pointer not checked for null before use : dir | CERT EXP08-C,EXP34-C
| 806 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_write (827 to 890 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 869 | Sizeof argument is a pointer. | CERT EXP01-C
M | 860 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 858 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_sync_commit (892 to 920 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 903 | Pointer not checked for null before use : ctx.output_buf | CERT EXP08-C,EXP34-C
| 901 |  |
M | 917 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 908 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_copy_to_mem_all (941 to 970 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 953 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 951 |  |
M | 964 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 960 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_compress (972 to 991 mailbox-list-index-sync.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 986 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_map (127 to 183 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 176 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 175 |  |
M | 144 | User input not checked before use. : st | CERT FIO30-C
| 136 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_init_header (200 to 215 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 206 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 205 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_file_create (245 to 303 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 296 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 293 |  |
M | 296 | Pointer not checked for null before use : index.mmap_size | CERT EXP08-C,EXP34-C
| 293 |  |
M | 249 | Procedure contains UR data flow anomalies. : dotlock | CERT EXP33-C
| 284 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mailbox-list-index.c | 249 | mailbox-list-index.c | 284 | dotlock

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_file_try_open_or_create (305 to 331 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 329 | Pointer not checked for null before use : index.mmap_size | CERT EXP08-C,EXP34-C
| 327 |  |
M | 322 | Pointer not checked for null before use : index.mmap_size | CERT EXP08-C,EXP34-C
| 319 |  |
M | 327 | Pointer not checked for null before use : index.mmap_size | CERT EXP08-C,EXP34-C
| 319 |  |
M | 329 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 327 |  |
M | 322 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 319 |  |
M | 327 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 319 |  |
M | 327 | Pointer not checked for null before use : index.hdr | CERT EXP08-C,EXP34-C
| 319 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_alloc (343 to 362 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 361 | Local structure returned in function result : index |
M | 350 | Pointer not checked for null before use : index | CERT EXP08-C,EXP34-C
| 349 |  |
M | 349 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 445) |  |
M | 356 | Pointer not checked for null before use : default_dotlock_set.context | CERT EXP08-C,EXP34-C
| 44 |  |
M | 356 | Pointer not checked for null before use : default_dotlock_set.lock_suffix | CERT EXP08-C,EXP34-C
| 44 |  |
M | 356 | Pointer not checked for null before use : default_dotlock_set.temp_prefix | CERT EXP08-C,EXP34-C
| 44 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_free (364 to 373 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 372 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 371 |  |
M | 372 | Attempt to read from freed memory. : default_pool | CERT MEM30-C
M | 372 | Pointer not checked for null before use : (index)->filepath | CERT EXP08-C,EXP34-C
| 371 |  |
M | 371 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 445) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_get_name (384 to 409 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 403 | Pointer not checked for null before use : name | CERT EXP08-C,EXP34-C
| 399 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_get_dir (411 to 468 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 415 | Attempt to use already freed object. | CERT MEM31-C
M | 437 | Pointer not checked for null before use : dir | CERT EXP08-C,EXP34-C
| 436 |  |
M | 428 | Pointer not checked for null before use : index.fd | CERT EXP08-C,EXP34-C
| 423 |  |
M | 432 | Pointer not checked for null before use : index.fd | CERT EXP08-C,EXP34-C
| 423 |  |
M | 461 | Pointer not checked for null before use : index.fd | CERT EXP08-C,EXP34-C
| 457 |  |
M | 450 | Pointer not checked for null before use : index.fd | CERT EXP08-C,EXP34-C
| 423 |  |
M | 457 | Pointer not checked for null before use : index.fd | CERT EXP08-C,EXP34-C
| 423 |  |
M | 428 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 423 |  |
M | 432 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 423 |  |
M | 461 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 457 |  |
M | 450 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 423 |  |
M | 457 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 423 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_record_cmp (470 to 493 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 484 | Attempt to use already freed object. | CERT MEM31-C
M | 482 | Procedure contains UR data flow anomalies. : name | CERT EXP33-C
| 489 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mailbox-list-index.c | 482 | mailbox-list-index.c | 489 | name

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_dir_lookup_rec (495 to 522 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 513 | Pointer not checked for null before use : key.name | CERT EXP08-C,EXP34-C
| 509 |  |
M | 513 | Pointer not checked for null before use : key.index | CERT EXP08-C,EXP34-C
| 508 |  |
M | 520 | Pointer not checked for null before use : rec | CERT EXP08-C,EXP34-C
| 513 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_lookup_rec (524 to 561 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 529 | Attempt to use already freed object. | CERT MEM31-C
M | 546 | Pointer not checked for null before use : hier_name | CERT EXP08-C,EXP34-C
| 544 |  |
M | 544 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 543 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_refresh (563 to 578 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 577 | Pointer not checked for null before use : (index)->fd | CERT EXP08-C,EXP34-C
| 576 |  |
M | 577 | Pointer not checked for null before use : index.mmap_size | CERT EXP08-C,EXP34-C
| 576 |  |
M | 577 | Pointer not checked for null before use : index.mmap_base | CERT EXP08-C,EXP34-C
| 576 |  |
M | 577 | Pointer not checked for null before use : index.hdr | CERT EXP08-C,EXP34-C
| 576 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_view_init (580 to 602 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 599 | Pointer not checked for null before use : view | CERT EXP08-C,EXP34-C
| 598 |  |
M | 584 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_view_deinit (604 to 610 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 609 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 445) |  |
M | 606 | Declaration types do not match across a system. : view | CERT ARR31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_iterate_init (632 to 676 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 675 | Local structure returned in function result : ctx |
M | 643 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 642 |  |
M | 650 | Pointer not checked for null before use : mail_hdr | CERT EXP08-C,EXP34-C
| 649 |  |
M | 642 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 445) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_iterate_next (678 to 760 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 723 | Attempt to use already freed object. | CERT MEM31-C
M | 730 | Attempt to use already freed object. | CERT MEM31-C
M | 705 | Pointer not checked for null before use : cur | CERT EXP08-C,EXP34-C
| 704 |  |
M | 711 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 710 |  |
M | 713 | Pointer not checked for null before use : recs | CERT EXP08-C,EXP34-C
| 711 |  |
M | 721 | Procedure contains UR data flow anomalies. : name | CERT EXP33-C
| 733 |  |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
mailbox-list-index.c | 721 | mailbox-list-index.c | 733 | name

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_list_index_iterate_deinit (762 to 770 mailbox-list-index.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 769 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 445) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_log_alloc (37 to 48 mailbox-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 47 | Local structure returned in function result : log |
M | 42 | Pointer not checked for null before use : log | CERT EXP08-C,EXP34-C
| 41 |  |
M | 41 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 446) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_log_free (50 to 61 mailbox-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 58 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 57 |  |
M | 59 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 58 |  |
M | 60 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 59 |  |
M | 60 | Pointer not checked for null before use : (log)->gid_origin | CERT EXP08-C,EXP34-C
| 57 |  |
M | 60 | Pointer not checked for null before use : (log)->filepath | CERT EXP08-C,EXP34-C
| 58 |  |
M | 60 | Pointer not checked for null before use : (log)->filepath2 | CERT EXP08-C,EXP34-C
| 59 |  |
M | 57 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 446) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_log_set_permissions (71 to 78 mailbox-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 76 | free parameter is not heap item. | CERT MEM34-C
M | 76 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 446) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_log_iter_open_next (187 to 212 mailbox-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 195 | Attempt to use already freed object. | CERT MEM31-C
M | 196 | Attempt to use already freed object. | CERT MEM31-C
M | 197 | Attempt to use already freed object. | CERT MEM31-C
M | 205 | Attempt to use already freed object. | CERT MEM31-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_log_iter_init (214 to 223 mailbox-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 222 | Local structure returned in function result : iter |
M | 219 | Pointer not checked for null before use : iter | CERT EXP08-C,EXP34-C
| 218 |  |
M | 218 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| Ref. Line -1101 (Module 446) |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mailbox_log_iter_next (225 to 264 mailbox-log.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 236 | Sizeof argument is a pointer. | CERT EXP01-C
M | 249 | Sizeof argument is a pointer. | CERT EXP01-C
M | 250 | Sizeof argument is a pointer. | CERT EXP01-C
M | 255 | Sizeof argument is a pointer. | CERT EXP01-C

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_set_corrupted (11 to 12 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 11 | Procedure not called in code analysed : mail_index_sync_set_corrupted |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_get_atomic_map (13 to 14 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 13 | Procedure not called in code analysed : mail_index_sync_get_atomic_map |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_register_ext (15 to 18 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 15 | Procedure not called in code analysed : mail_index_map_register_ext |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_lookup (19 to 21 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 19 | Procedure not called in code analysed : mail_index_ext_lookup |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_lookup_ext (22 to 24 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 22 | Procedure not called in code analysed : mail_index_map_lookup_ext |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_ext_hdr_check (25 to 28 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 25 | Procedure not called in code analysed : mail_index_map_ext_hdr_check |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_hdr_update (29 to 29 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 29 | Procedure not called in code analysed : mail_index_modseq_hdr_update |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_lookup_seq (30 to 34 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 30 | Procedure not called in code analysed : mail_index_lookup_seq |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_sync_write_seq_update (35 to 37 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 35 | Procedure not called in code analysed : mail_index_sync_write_seq_update |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_sync_ext_atomic_inc (39 to 93 test-mail-index-sync-ext.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 68 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | 68 | Macro replacement list needs parentheses. | CERT PRE02-C
M | 74 | Macro parameter not in brackets. | CERT PRE01-C,PRE02-C
M | 74 | Macro replacement list needs parentheses. | CERT PRE02-C
M | 50 | Pointer not checked for null before use : ctx.view | CERT EXP08-C,EXP34-C
| 49 |  |
M | 85 | Pointer not checked for null before use : ptr | CERT EXP08-C,EXP34-C
| 59 |  |
M | 65 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 62 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 65 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 85 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 85 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
M | 86 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
M | 90 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 86 |  |
C | 39 | Procedure not called in code analysed : test_mail_index_sync_ext_atomic_inc |

Code | Line | Violation | Standard
--- | --- | --- | ---

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_get_ext_idx (15 to 17 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 15 | Procedure not called in code analysed : mail_index_map_get_ext_idx |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_ext_set_reset_id (18 to 20 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 18 | Procedure not called in code analysed : mail_index_ext_set_reset_id |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_set_log_updates (21 to 21 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 21 | Procedure not called in code analysed : mail_index_transaction_set_log_updates |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_day_headers (22 to 22 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 22 | Procedure not called in code analysed : mail_index_update_day_headers |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_cancel_flag_updates (23 to 24 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 23 | Procedure not called in code analysed : mail_index_cancel_flag_updates |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_cancel_keyword_updates (25 to 26 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 25 | Procedure not called in code analysed : mail_index_cancel_keyword_updates |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_sort_appends (27 to 27 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 27 | Procedure not called in code analysed : mail_index_transaction_sort_appends |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map (28 to 29 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 28 | Procedure not called in code analysed : mail_index_map |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_update_modseq (30 to 31 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 30 | Procedure not called in code analysed : mail_index_update_modseq |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_lookup (33 to 38 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 33 | Procedure not called in code analysed : mail_index_lookup |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_lookup (40 to 46 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 40 | Procedure not called in code analysed : mail_index_transaction_lookup |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_lookup (48 to 53 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 48 | Procedure not called in code analysed : mail_index_modseq_lookup |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_modseq_get_highest (55 to 58 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 55 | Procedure not called in code analysed : mail_index_modseq_get_highest |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_transaction_finish_flag_updates (60 to 117 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 68 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 67 |  |
M | 78 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 76 |  |
M | 78 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 76 |  |
M | 93 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 91 |  |
M | 93 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 91 |  |
M | 106 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 104 |  |
M | 106 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 104 |  |
M | 109 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 100 |  |
M | 100 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 81 |  |
C | 60 | Procedure not called in code analysed : test_mail_index_transaction_finish_flag_updates |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_transaction_finish_check_conflicts (119 to 155 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 127 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 126 |  |
M | 147 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 142 |  |
C | 119 | Procedure not called in code analysed : test_mail_index_transaction_finish_check_conflicts |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_transaction_finish_uid_updates (157 to 187 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 168 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 164 |  |
M | 170 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 169 |  |
M | 172 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 171 |  |
M | 174 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 173 |  |
M | 176 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 175 |  |
C | 157 | Procedure not called in code analysed : test_mail_index_transaction_finish_uid_updates |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_transaction_finish_modseq_updates (189 to 232 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 200 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 196 |  |
M | 203 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 200 |  |
M | 203 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 200 |  |
C | 189 | Procedure not called in code analysed : test_mail_index_transaction_finish_modseq_updates |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_transaction_finish_expunges (234 to 284 test-mail-index-transaction-finish.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 255 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 254 |  |
M | 262 | Pointer not checked for null before use : (arr)->buffer | CERT EXP08-C,EXP34-C
| 259 |  |
M | 262 | Pointer not checked for null before use : (arr)->element_size | CERT EXP08-C,EXP34-C
| 259 |  |
C | 234 | Procedure not called in code analysed : test_mail_index_transaction_finish_expunges |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_get_header (14 to 18 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 14 | Procedure not called in code analysed : mail_index_get_header |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_lookup (20 to 25 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 20 | Procedure not called in code analysed : mail_index_lookup |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_lookup_keywords (27 to 32 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 27 | Procedure not called in code analysed : mail_index_lookup_keywords |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_map_get_ext_idx (34 to 39 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 34 | Procedure not called in code analysed : mail_index_map_get_ext_idx |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_view_get_messages_count (41 to 44 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 41 | Procedure not called in code analysed : mail_index_view_get_messages_count |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_transaction_new (46 to 54 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 53 | Local structure returned in function result : t |
M | 52 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 51 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_append (56 to 123 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 69 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 66 |  |
M | 93 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 90 |  |
M | 60 | Procedure contains UR data flow anomalies. : saved_uids_arr.arr.buffer | CERT EXP33-C
| 77 |  |
M | 60 | Procedure contains UR data flow anomalies. : saved_uids_arr.arr.element_size | CERT EXP33-C
| 77 |  |
M | 60 | Procedure contains UR data flow anomalies. : saved_uids_arr.v | CERT EXP33-C
| 77 |  |
M | 60 | Procedure contains UR data flow anomalies. : saved_uids_arr.v_modifiable | CERT EXP33-C
| 77 |  |
C | 56 | Procedure not called in code analysed : test_mail_index_append |

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
test-mail-index-transaction-update.c | 60 | test-mail-index-transaction-update.c | 77 | saved_uids_arr.arr.buffer
test-mail-index-transaction-update.c | 60 | test-mail-index-transaction-update.c | 77 | saved_uids_arr.arr.element_size
test-mail-index-transaction-update.c | 60 | test-mail-index-transaction-update.c | 77 | saved_uids_arr.v
test-mail-index-transaction-update.c | 60 | test-mail-index-transaction-update.c | 77 | saved_uids_arr.v_modifiable

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_flag_update_fastpath (125 to 165 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 136 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 132 |  |
C | 125 | Procedure not called in code analysed : test_mail_index_flag_update_fastpath |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_flag_update_simple_merges (167 to 208 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 178 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 174 |  |
C | 167 | Procedure not called in code analysed : test_mail_index_flag_update_simple_merges |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_flag_update_complex_merges (210 to 266 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 221 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 217 |  |
C | 210 | Procedure not called in code analysed : test_mail_index_flag_update_complex_merges |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_flag_update_random (298 to 341 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 336 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 306 |  |
C | 298 | Procedure not called in code analysed : test_mail_index_flag_update_random |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_cancel_flag_updates (343 to 373 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 354 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 350 |  |
C | 343 | Procedure not called in code analysed : test_mail_index_cancel_flag_updates |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_flag_update_appends (375 to 418 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 387 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 384 |  |
C | 375 | Procedure not called in code analysed : test_mail_index_flag_update_appends |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_transaction_get_flag_update_pos (437 to 463 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 445 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 444 |  |
C | 437 | Procedure not called in code analysed : test_mail_index_transaction_get_flag_update_pos |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_uid_update (465 to 488 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 476 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 474 |  |
C | 465 | Procedure not called in code analysed : test_mail_index_uid_update |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_modseq_update (490 to 524 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 501 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 499 |  |
C | 490 | Procedure not called in code analysed : test_mail_index_modseq_update |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_index_expunge (526 to 568 test-mail-index-transaction-update.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 546 | Pointer not checked for null before use : t | CERT EXP08-C,EXP34-C
| 539 |  |
C | 526 | Procedure not called in code analysed : test_mail_index_expunge |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_file_set_syscall_error (14 to 19 test-mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 14 | Procedure not called in code analysed : mail_index_file_set_syscall_error |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_lock_head (21 to 24 test-mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 21 | Procedure not called in code analysed : mail_transaction_log_lock_head |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_unlock (26 to 26 test-mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 26 | Procedure not called in code analysed : mail_transaction_log_file_unlock |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_update_modseq (28 to 34 test-mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 28 | Procedure not called in code analysed : mail_transaction_update_modseq |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_index_move_to_memory (36 to 39 test-mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 36 | Procedure not called in code analysed : mail_index_move_to_memory |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_append_expunge (41 to 81 test-mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 62 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 61 |  |
M | 66 | Pointer not checked for null before use : bufp | CERT EXP08-C,EXP34-C
| 65 |  |
M | 69 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 68 |  |
M | 74 | Pointer not checked for null before use : bufp | CERT EXP08-C,EXP34-C
| 73 |  |
M | 50 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 49 |  |
M | 57 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 49 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_append_sync_offset (83 to 108 test-mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 99 | Pointer not checked for null before use : hdr | CERT EXP08-C,EXP34-C
| 98 |  |
M | 102 | Pointer not checked for null before use : u | CERT EXP08-C,EXP34-C
| 101 |  |
M | 105 | Pointer not checked for null before use : offsetp | CERT EXP08-C,EXP34-C
| 104 |  |
M | 93 | Pointer not checked for null before use : ctx | CERT EXP08-C,EXP34-C
| 92 |  |
M | 95 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 92 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_transaction_log_append (110 to 154 test-mail-transaction-log-append.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 125 | Pointer not checked for null before use : log | CERT EXP08-C,EXP34-C
| 124 |  |
M | 128 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 127 |  |
M | 134 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 130 |  |
M | 146 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 138 |  |
M | 138 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 134 |  |
M | 147 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 146 |  |
C | 110 | Procedure not called in code analysed : test_mail_transaction_log_append |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_set_corrupted (12 to 15 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 12 | Procedure not called in code analysed : mail_transaction_log_file_set_corrupted |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_logs_clean (17 to 19 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 17 | Procedure not called in code analysed : mail_transaction_logs_clean |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_find_file (21 to 34 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 21 | Procedure not called in code analysed : mail_transaction_log_find_file |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_map (36 to 40 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 36 | Procedure not called in code analysed : mail_transaction_log_file_map |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_log_file_get_highest_modseq_at (42 to 48 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 42 | Procedure not called in code analysed : mail_transaction_log_file_get_highest_modseq_at |

[ | Top of Report | | | Procedure Table | | | Contents | ]

mail_transaction_update_modseq (50 to 55 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
C | 50 | Procedure not called in code analysed : mail_transaction_update_modseq |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_transaction_log_file_add (57 to 78 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 64 | Sizeof argument is a pointer. | CERT EXP01-C
M | 63 | Pointer not checked for null before use : file | CERT EXP08-C,EXP34-C
| 62 |  |
M | 72 | Pointer not checked for null before use : p | CERT EXP08-C,EXP34-C
| 72 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

view_is_file_refed (80 to 94 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 88 | Pointer not checked for null before use : files | CERT EXP08-C,EXP34-C
| 86 |  |

[ | Top of Report | | | Procedure Table | | | Contents | ]

test_mail_transaction_log_view (115 to 207 test-mail-transaction-log-view.c) - FAIL

#### Standards Violation Summary

Code | Violation | Standard
--- | --- | ---
M | Procedure contains UR data flow anomalies. | CERT EXP33-C

Code | Line | Violation | Standard
--- | --- | --- | ---
M | 158 | Pointer not checked for null before use : data | CERT EXP08-C,EXP34-C
| 156 |  |
M | 199 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 195 |  |
M | 204 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 199 |  |
M | 160 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 156 |  |
M | 170 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 167 |  |
M | 176 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 170 |  |
M | 179 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 176 |  |
M | 185 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 179 |  |
M | 195 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 185 |  |
M | 156 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 150 |  |
M | 167 | Pointer not checked for null before use : default_pool | CERT EXP08-C,EXP34-C
| 160 |  |
M | 122 | Procedure contains UR data flow anomalies. : last_log_size | CERT EXP33-C
| 138 |  |
M | 120 | Procedure contains UR data flow anomalies. : data | CERT EXP33-C
| 158 |  |
C | 115 | Procedure not called in code analysed : test_mail_transaction_log_view |
M | 120 | Declaration types do not match across a system. : data | CERT ARR31-C

#### Possible UR Anomalies

The following variables may be referenced before being given a value

File | Undefine | File | Reference | Variable
--- | --- | --- | --- | ---
test-mail-transaction-log-view.c | 122 | test-mail-transaction-log-view.c | 138 | last_log_size
test-mail-transaction-log-view.c | 120 | test-mail-transaction-log-view.c | 158 | data

[ | Top of Report | | | Procedure Table | | | Contents | ]

### End of Code Review Report

###

### Copyright © 2010 Liverpool Data Research Associates