mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-30 10:52:03 +02:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
Patch-Source: https://github.com/openjdk/jfx/commit/366b062c2f9fd4196cecb7f2113c923491202e59
|
|
From 366b062c2f9fd4196cecb7f2113c923491202e59 Mon Sep 17 00:00:00 2001
|
|
From: Florian Weimer <fweimer@openjdk.org>
|
|
Date: Mon, 8 Jan 2024 18:35:35 +0000
|
|
Subject: [PATCH] 8323078: Incorrect length argument to g_utf8_strlen in
|
|
pango.c
|
|
|
|
Reviewed-by: kcr
|
|
---
|
|
modules/javafx.graphics/src/main/native-font/pango.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/modules/javafx.graphics/src/main/native-font/pango.c b/modules/javafx.graphics/src/main/native-font/pango.c
|
|
index 84d1c4f51e2..e4f1f5faa0b 100644
|
|
--- a/modules/javafx.graphics/src/main/native-font/pango.c
|
|
+++ b/modules/javafx.graphics/src/main/native-font/pango.c
|
|
@@ -424,7 +424,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)
|