Fuzz introspector: flb-it-fuzz-cmetrics_decode_fuzz_OSSFUZZ
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Fuzz blockers

The followings are the branches where fuzzer fails to bypass.

Unique non-covered Complexity Unique Reachable Complexities Unique Reachable Functions All non-covered Complexity All Reachable Complexity Function Name Function Callsite Blocked Branch
7263 20737 56 :

['flb_engine_manager', 'handle_input_event.5149', 'flb_task_running_print', 'flb_notification_cleanup', 'cfl_time_now', 'flb_upstream_conn_pending_destroy_list', 'flb_notification_deliver', 'flb_task_running_count', 'sb_segregate_chunks', 'mk_event_timeout_destroy', 'getenv', 'flb_sched_event_handler', 'flb_errno_print', 'flb_engine_exit', 'flb_router_io_set', 'flb_sched_timer_cb_create', 'flb_input_pause_all', 'flb_bucket_queue_find_min.5154', 'flb_input_chunk_ring_buffer_collector', 'co_active', 'flb_hs_start', 'handle_output_events', 'flb_input_collectors_start', 'flb_engine_shutdown', 'flb_output_pre_run', 'flb_me_fd_event', 'atoi', 'flb_downstream_conn_pending_destroy_list', 'sleep', 'flb_event_load_bucket_queue.5155', 'flb_sosreport', 'mk_event_wait', 'flb_sched_timer_cleanup', 'flb_engine_started', 'flb_bucket_queue_pop_min.5153', 'flb_coro_set', 'flb_engine_drain_ring_buffer_signal_channel', 'read', 'flb_engine_reschedule_retries', 'flb_utils_error', 'flb_notification_receive', 'flb_storage_metrics_create', 'flb_utils_pipe_byte_consume', 'flb_engine_flush', 'co_switch', 'flb_hs_create', 'mk_event_timeout_create', '__errno_location', 'flb_utils_timer_consume', 'exit', 'flb_input_collector_fd', 'flb_net_dns_lookup_context_cleanup', 'flb_me_create', 'mk_event_wait_2', 'flb_event_load_injected_events.5147', 'flb_time_from_double']

7263 21164 flb_engine_start call site: 00000 /src/fluent-bit/src/flb_engine.c:842
2317 2317 2 :

['flb_input_thread_instance_init', 'flb_ring_buffer_add_event_loop']

2317 3077 flb_input_instance_init call site: 00000 /src/fluent-bit/src/flb_input.c:1208
1760 1831 3 :

['flb_sched_request_destroy', 'consume_byte', 'flb_engine_dispatch_retry']

1760 1831 flb_sched_event_handler call site: 00000 /src/fluent-bit/src/flb_scheduler.c:593
1698 1761 5 :

['flb_log_suppress_check.18701', 'flb_output_name', 'post_all_requests', 'flb_log_check_level.18699', 'flb_log_print']

1698 1761 cb_http_flush call site: 00000 /src/fluent-bit/plugins/out_http/http.c:593
1684 2434 4 :

['flb_chunk_trace_context_destroy', 'flb_chunk_trace_input', 'flb_chunk_trace_context_hit_limit', 'flb_chunk_trace_new']

1686 2436 flb_chunk_trace_do_input call site: 00000 /src/fluent-bit/src/flb_chunk_trace.c:542
1683 2437 2 :

['flb_output_task_singleplex_flush_next', 'flb_task_users_dec']

1683 2437 flb_output_task_flush call site: 00000 /src/fluent-bit/src/flb_output.c:328
1683 1683 1 :

['flb_output_task_singleplex_flush_next']

1698 2781 handle_output_event call site: 00000 /src/fluent-bit/src/flb_engine.c:284
1549 1549 1 :

['flb_chunk_trace_pre_output']

1549 1684 input_chunk_append_raw call site: 00000 /src/fluent-bit/src/flb_input_chunk.c:1766
1540 1540 1 :

['flb_chunk_trace_output']

1544 1623 flb_output_return call site: 00000 /src/fluent-bit/include/fluent-bit/flb_output.h:1155
1470 2448 38 :

['cmt_encode_msgpack_destroy', 'co_delete', 'cfl_sds_len', 'ctr_destroy', 'flb_malloc.4415', 'cprof_destroy', 'flb_errno_print', 'co_create', 'cprof_encode_msgpack_create', 'flb_sds_len.4412', 'ctr_encode_msgpack_destroy', 'flb_output_thread_instance_get', 'cmt_encode_msgpack_create', 'flb_free.4399', 'co_active', 'cprof_encode_msgpack_destroy', 'flb_event_chunk_create', 'cmt_decode_msgpack_create', 'pthread_mutex_unlock', 'flb_processor_run', 'flb_event_chunk_destroy', 'flb_output_flush_id_get', 'write', 'mk_list_del.4403', 'co_switch', 'flb_calloc.4503', 'mk_list_add.4404', 'flb_log_check.4408', 'ctr_decode_msgpack_create', '__errno_location', 'flb_mp_count', 'cmt_destroy', 'pthread_mutex_lock', 'flb_processor_is_active', 'flb_realloc.4411', 'ctr_encode_msgpack_create', 'cprof_decode_msgpack_create', 'flb_log_print']

3153 4887 flb_output_task_flush call site: 00000 /src/fluent-bit/src/flb_output.c:323
930 930 1 :

['net_io_write']

937 937 flb_io_net_write call site: 00000 /src/fluent-bit/src/flb_io.c:689
759 759 1 :

['memrb_input_chunk_release_space']

2310 8922 input_chunk_append_raw call site: 00000 /src/fluent-bit/src/flb_input_chunk.c:1488

Fuzzer calltree

0 LLVMFuzzerTestOneInput [function] [call site] 00000