From 275cc632253a5e93f0c68e098e7b79ffbd0b0228 Mon Sep 17 00:00:00 2001 From: Jamie Greunbaum Date: Sun, 2 Jun 2024 22:54:49 -0400 Subject: [PATCH] Bug report form now has an extra check to ensure the received array of tag options is the correct size. --- UI/bug_report_form.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/bug_report_form.gd b/UI/bug_report_form.gd index 9ce7bef..88a2422 100644 --- a/UI/bug_report_form.gd +++ b/UI/bug_report_form.gd @@ -49,6 +49,9 @@ func _exit_tree(): func fill_tags(tag_list:Array): __label_groups.resize(BugbotServerAPI.BugbotTagArray.MAX) __label_groups = tag_list + if __label_groups.size() != BugbotServerAPI.BugbotTagArray.MAX: + printerr("Invalid tag array format.") + return __product_name.text = ProjectSettings.get_setting("application/config/name", __DEFAULT_PRODUCT_NAME) __fill_item_list(__version_button, BugbotServerAPI.BugbotTagArray.VERSION)