Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

graphite: Update to 1.3.15

Rémi Verschelde41d2638eb369
diff --git a/thirdparty/README.md b/thirdparty/README.md
index cbabe51a514..048752bfa49 100644
--- a/thirdparty/README.md
+++ b/thirdparty/README.md
@@ -442,7 +442,7 @@ Patches:
## graphite
- Upstream: https://github.com/silnrsi/graphite
-- Version: 1.3.14 (27572742003b93dc53dc02c01c237b72c6c25f54, 2022)
+- Version: 1.3.15 (ca8d821e60a15b6c24e404c9086992c975d8e1cf, 2026)
- License: MIT
Files extracted from upstream source:
diff --git a/thirdparty/graphite/include/graphite2/Font.h b/thirdparty/graphite/include/graphite2/Font.h
index b0a1e36370e..5c9b1810c05 100644
--- a/thirdparty/graphite/include/graphite2/Font.h
+++ b/thirdparty/graphite/include/graphite2/Font.h
@@ -6,7 +6,7 @@
#define GR2_VERSION_MAJOR 1
#define GR2_VERSION_MINOR 3
-#define GR2_VERSION_BUGFIX 14
+#define GR2_VERSION_BUGFIX 15
#ifdef __cplusplus
extern "C"
diff --git a/thirdparty/graphite/src/inc/opcodes.h b/thirdparty/graphite/src/inc/opcodes.h
index 10ba1772298..f6166693750 100644
--- a/thirdparty/graphite/src/inc/opcodes.h
+++ b/thirdparty/graphite/src/inc/opcodes.h
@@ -53,7 +53,8 @@
#define push(n) { *++sp = n; }
#define pop() (*sp--)
-#define slotat(x) (map[(x)])
+#define slotat(x) ((map + (x) >= &smap[-1] && map + (x) < smap.end()) ? \
+ map[(x)] : (status = Machine::slot_offset_out_bounds, nullptr))
#define DIE { is=seg.last(); status = Machine::died_early; EXIT(1); }
#define POSITIONED 1