- Fix JVM crashes
- Bump PORTREVISION PR: 114819 Submitted by: Dmitrij Tejblum <dt@yandex.ru> Approved by: Robert Noland <rnoland@2hip.net> (maintainer)
This commit is contained in:
parent
eedf073f07
commit
7a922e01bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197040
3 changed files with 22 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= swt-devel
|
||||
DISTVERSION= 3.3
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= x11-toolkits devel java
|
||||
MASTER_SITES= ${MASTER_SITE_ECLIPSE}
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
MD5 (swt-3.3-gtk-linux-x86.zip) = 7398cdf9340cb131b76ed98495239520
|
||||
SHA256 (swt-3.3-gtk-linux-x86.zip) = 08a3b6329c878c99025e9c9b530b65c4315a37ce52e796e89ae6dc62269df163
|
||||
SIZE (swt-3.3-gtk-linux-x86.zip) = 4448296
|
||||
MD5 (swt-3.3-gtk-linux-x86_64.zip) = b0a4b3442e61d2968acecfa18cdd3aa9
|
||||
SHA256 (swt-3.3-gtk-linux-x86_64.zip) = f4357ed778da7f0b91b08b0ed67fe2bc907a2c6a1b5808442f6390f56fa85b50
|
||||
SIZE (swt-3.3-gtk-linux-x86_64.zip) = 4622274
|
||||
|
|
21
x11-toolkits/swt-devel/files/patch-os.c
Normal file
21
x11-toolkits/swt-devel/files/patch-os.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
--- ./os.c 2007-07-22 11:53:22.000000000 +0400
|
||||
+++ ./os.c 2007-07-22 11:57:56.000000000 +0400
|
||||
@@ -17397,11 +17397,16 @@
|
||||
jint rc = 0;
|
||||
OS_NATIVE_ENTER(env, that, realpath_FUNC);
|
||||
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
|
||||
- if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
|
||||
+ if (arg1) {
|
||||
+ if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
|
||||
+ } else
|
||||
+ lparg1 = malloc(PATH_MAX);
|
||||
rc = (jint)realpath((const char *)lparg0, (char *)lparg1);
|
||||
fail:
|
||||
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
|
||||
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
|
||||
+ if (!arg1 && lparg1 && rc == 0)
|
||||
+ free(lparg1);
|
||||
OS_NATIVE_EXIT(env, that, realpath_FUNC);
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in a new issue