mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 16:23:46 +08:00
ui: fix memory corruption by using std::vector for PubMaster initialization (#33390)
Fix memory Corruption Issue old-commit-hash: 1c19cbc437ad7fdb84f039272bc482440eb41895
This commit is contained in:
+1
-1
@@ -240,7 +240,7 @@ void UIState::updateStatus() {
|
||||
}
|
||||
|
||||
UIState::UIState(QObject *parent) : QObject(parent) {
|
||||
sm = std::make_unique<SubMaster, const std::initializer_list<const char *>>({
|
||||
sm = std::make_unique<SubMaster>(std::vector<const char*>{
|
||||
"modelV2", "controlsState", "liveCalibration", "radarState", "deviceState",
|
||||
"pandaStates", "carParams", "driverMonitoringState", "carState", "driverStateV2",
|
||||
"wideRoadCameraState", "managerState", "clocks",
|
||||
|
||||
Reference in New Issue
Block a user