|
| 1 | +2023-08-22 David Malcolm < [email protected]> |
| 2 | + |
| 3 | + PR analyzer/105899 |
| 4 | + * kf-analyzer.cc (class kf_analyzer_get_strlen): Move to kf.cc. |
| 5 | + (register_known_analyzer_functions): Use make_kf_strlen. |
| 6 | + * kf.cc (class kf_strlen::impl_call_pre): Replace with |
| 7 | + implementation of kf_analyzer_get_strlen from kf-analyzer.cc. |
| 8 | + Handle "UNKNOWN" return from check_for_null_terminated_string_arg |
| 9 | + by falling back to a conjured svalue. |
| 10 | + (make_kf_strlen): New. |
| 11 | + (register_known_functions): Use make_kf_strlen. |
| 12 | + * known-function-manager.h (make_kf_strlen): New decl. |
| 13 | + |
| 14 | +2023-08-22 David Malcolm < [email protected]> |
| 15 | + |
| 16 | + PR analyzer/105899 |
| 17 | + * call-details.cc (call_details::call_details): New ctor. |
| 18 | + * call-details.h (call_details::call_details): New ctor decl. |
| 19 | + (struct call_arg_details): Move here from region-model.cc. |
| 20 | + * region-model.cc (region_model::check_call_format_attr): New. |
| 21 | + (region_model::check_call_args): Call it. |
| 22 | + (struct call_arg_details): Move it to call-details.h. |
| 23 | + * region-model.h (region_model::check_call_format_attr): New decl. |
| 24 | + |
| 25 | +2023-08-22 David Malcolm < [email protected]> |
| 26 | + |
| 27 | + * kf.cc (class kf_fopen): New. |
| 28 | + (register_known_functions): Register it. |
| 29 | + |
| 30 | +2023-08-22 David Malcolm < [email protected]> |
| 31 | + |
| 32 | + PR analyzer/105899 |
| 33 | + * analyzer.opt (Wanalyzer-unterminated-string): Delete. |
| 34 | + * call-details.cc |
| 35 | + (call_details::check_for_null_terminated_string_arg): Convert |
| 36 | + return type from void to const svalue *. Add param "out_sval". |
| 37 | + * call-details.h |
| 38 | + (call_details::check_for_null_terminated_string_arg): Likewise. |
| 39 | + * kf-analyzer.cc (kf_analyzer_get_strlen::impl_call_pre): Wire up |
| 40 | + to result of check_for_null_terminated_string_arg. |
| 41 | + * region-model.cc (get_strlen): Delete. |
| 42 | + (class unterminated_string_arg): Delete. |
| 43 | + (struct fragment): New. |
| 44 | + (class iterable_cluster): New. |
| 45 | + (region_model::get_store_bytes): New. |
| 46 | + (get_tree_for_byte_offset): New. |
| 47 | + (region_model::scan_for_null_terminator): New. |
| 48 | + (region_model::check_for_null_terminated_string_arg): Convert |
| 49 | + return type from void to const svalue *. Add param "out_sval". |
| 50 | + Reimplement in terms of scan_for_null_terminator, dropping the |
| 51 | + special-case for -Wanalyzer-unterminated-string. |
| 52 | + * region-model.h (region_model::get_store_bytes): New decl. |
| 53 | + (region_model::scan_for_null_terminator): New decl. |
| 54 | + (region_model::check_for_null_terminated_string_arg): Convert |
| 55 | + return type from void to const svalue *. Add param "out_sval". |
| 56 | + * store.cc (concrete_binding::get_byte_range): New. |
| 57 | + * store.h (concrete_binding::get_byte_range): New decl. |
| 58 | + (store_manager::get_concrete_binding): New overload. |
| 59 | + |
| 60 | +2023-08-22 David Malcolm < [email protected]> |
| 61 | + |
| 62 | + * region-model.cc (region_model_context_decorator::add_event): |
| 63 | + Handle m_inner being NULL. |
| 64 | + * region-model.h (class region_model_context_decorator): Likewise. |
| 65 | + (annotating_context::warn): Likewise. |
| 66 | + |
| 67 | +2023-08-22 David Malcolm < [email protected]> |
| 68 | + |
| 69 | + * diagnostic-manager.cc (saved_diagnostic::add_event): New. |
| 70 | + (saved_diagnostic::add_any_saved_events): New. |
| 71 | + (diagnostic_manager::add_event): New. |
| 72 | + (dedupe_winners::emit_best): New. |
| 73 | + (diagnostic_manager::emit_saved_diagnostic): Make "sd" param |
| 74 | + non-const. Call saved_diagnostic::add_any_saved_events. |
| 75 | + * diagnostic-manager.h (saved_diagnostic::add_event): New decl. |
| 76 | + (saved_diagnostic::add_any_saved_events): New decl. |
| 77 | + (saved_diagnostic::m_saved_events): New field. |
| 78 | + (diagnostic_manager::add_event): New decl. |
| 79 | + (diagnostic_manager::emit_saved_diagnostic): Make "sd" param |
| 80 | + non-const. |
| 81 | + * engine.cc (impl_region_model_context::add_event): New. |
| 82 | + * exploded-graph.h (impl_region_model_context::add_event): New decl. |
| 83 | + * region-model.cc |
| 84 | + (noop_region_model_context::add_event): New. |
| 85 | + (region_model_context_decorator::add_event): New. |
| 86 | + * region-model.h (region_model_context::add_event): New vfunc. |
| 87 | + (noop_region_model_context::add_event): New decl. |
| 88 | + (region_model_context_decorator::add_event): New decl. |
| 89 | + |
| 90 | +2023-08-22 David Malcolm < [email protected]> |
| 91 | + |
| 92 | + * region-model.cc |
| 93 | + (class check_external_function_for_access_attr::annotating_ctxt): |
| 94 | + Convert to an annotating_context. |
| 95 | + * region-model.h (class note_adding_context): Rename to... |
| 96 | + (class annotating_context): ...this, updating the "warn" method. |
| 97 | + (note_adding_context::make_note): Replace with... |
| 98 | + (annotating_context::add_annotations): ...this. |
| 99 | + |
1 | 100 | 2023-08-14 benjamin priour < [email protected]>
|
2 | 101 |
|
3 | 102 | PR analyzer/110543
|
|
0 commit comments