ENH:Add an array out of bounds protection
jira: none Change-Id: I57f401d368191aec8a6687158e0c50c455429893
This commit is contained in:
parent
129134f6df
commit
4e3ee050db
|
@ -3137,8 +3137,12 @@ void Sidebar::sync_ams_list(bool is_from_big_sync_btn)
|
|||
}
|
||||
for (size_t i = 0; i < sync_ams_badges.size(); i++) {
|
||||
if (sync_ams_badges[i] == true) {
|
||||
auto &c = p->combos_filament[i];
|
||||
badge_combox_filament(c);
|
||||
if (i < p->combos_filament.size()) {
|
||||
auto &c = p->combos_filament[i];
|
||||
badge_combox_filament(c);
|
||||
} else {
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << __LINE__ << "check error: p->combos_filament array out of bound";
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue