Skip to content

Commit f47b04f

Browse files
committed
Fix SettingChimes cbOption array size
There are 3 options, but the array-size is set to 2. This leads to memory corruption in the initialization of the SettingChimes screen when assigning the third option object pointer. Found in InfiniTimeOrg/InfiniSim#11
1 parent 7e0b053 commit f47b04f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/displayapp/screens/settings/SettingChimes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Pinetime {
2020
private:
2121
Controllers::Settings& settingsController;
2222
uint8_t optionsTotal;
23-
lv_obj_t* cbOption[2];
23+
lv_obj_t* cbOption[3];
2424
};
2525
}
2626
}

0 commit comments

Comments
 (0)