vocab : correct bounds check for UGM XCDA array access (#17215)

This commit is contained in:
o7si 2025-11-13 06:41:02 +08:00 committed by GitHub
parent 5d6838b74f
commit ffb6f3d921
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1013,7 +1013,7 @@ private:
}
private:
uint32_t get_node(size_t index) {
if (index > xcda_array_size) {
if (index >= xcda_array_size) {
throw std::runtime_error("Index out of array bounds in XCDA array!");
}
return xcda_array[index];