Open ColinIanKing opened 4 years ago
Same kind of issue in profiling_init too with cfg fields:
805 for (i = 0; i < PERF_COUNT_NUM; i++) {
806 plat_profiling_config(i, &cfg);
807 conf_arr[i].perf_count_id = i;
808 conf_arr[i].type = cfg.type;
In common/os/os_perf.c function ll_init() is declaring cfg on the stack and then assigning conf from some uninitialized fields in cfg namely:
Should cfg be memset before calling plat_ll_config?