Backport: Fix a couple of heap overflow vulnerabilities, all "disputed"
severity
https://github.com/godotengine/godot/issues/123608
CVE-2026-110734
CVE-2026-110735
CVE-2026-110736

Index: core/string/optimized_translation.h
--- core/string/optimized_translation.h.orig
+++ core/string/optimized_translation.h
@@ -72,6 +72,10 @@ class OptimizedTranslation : public Translation {
 		return d;
 	}
 
+	// Helpers to guard against corrupted resources.
+	const Bucket *_get_bucket(uint32_t p_offset) const;
+	String _get_string(const Bucket::Elem &p_elem) const;
+
 protected:
 	bool _set(const StringName &p_name, const Variant &p_value);
 	bool _get(const StringName &p_name, Variant &r_ret) const;
