summaryrefslogtreecommitdiff
path: root/dev-java/openjfx/files/11/0002-c99.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-06 19:06:26 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-06 19:06:26 +0000
commitf8f68d6f93dd8510c09261f47d4f64cadf303815 (patch)
tree2d317143f2696b93a06c8d26452ea901a1f2fd74 /dev-java/openjfx/files/11/0002-c99.patch
parent0113c4c9eb49e26aee006787c9564c1165909926 (diff)
gentoo auto-resync : 06:03:2024 - 19:06:26
Diffstat (limited to 'dev-java/openjfx/files/11/0002-c99.patch')
-rw-r--r--dev-java/openjfx/files/11/0002-c99.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-java/openjfx/files/11/0002-c99.patch b/dev-java/openjfx/files/11/0002-c99.patch
new file mode 100644
index 000000000000..4cdc5ed35e50
--- /dev/null
+++ b/dev-java/openjfx/files/11/0002-c99.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/919413
+https://src.fedoraproject.org/rpms/openjfx/c/9e893037f3a20273c79603220b7a18a44be60fcc?branch=rawhide
+
+8323078: Incorrect length argument to g_utf8_strlen in pango.c
+
+Submitted upstream: <https://github.com/openjdk/jfx/pull/1320>
+
+--- a/modules/javafx.graphics/src/main/native-font/pango.c
++++ b/modules/javafx.graphics/src/main/native-font/pango.c
+@@ -402,7 +402,7 @@ JNIEXPORT jlong JNICALL OS_NATIVE(g_1utf8_1strlen)
+ (JNIEnv *env, jclass that, jlong str, jlong pos)
+ {
+ if (!str) return 0;
+- return (jlong)g_utf8_strlen((const gchar *)str, (const gchar *)pos);
++ return (jlong)g_utf8_strlen((const gchar *)str, (gssize)pos);
+ }
+
+ JNIEXPORT jlong JNICALL OS_NATIVE(g_1utf16_1to_1utf8)