pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/ucon64 ucon64: fix crash in change_mem2() on...
details: https://anonhg.NetBSD.org/pkgsrc/rev/be31c2a14fcd
branches: trunk
changeset: 443747:be31c2a14fcd
user: fcambus <fcambus%pkgsrc.org@localhost>
date: Sun Dec 20 15:15:01 2020 +0000
description:
ucon64: fix crash in change_mem2() on 64-bit platforms.
Patch from upstream: https://sourceforge.net/p/ucon64/svn/2822/
Thanks to Daniel Horchner for the heads up!
diffstat:
emulators/ucon64/Makefile | 3 ++-
emulators/ucon64/distinfo | 4 +++-
emulators/ucon64/patches/patch-libdiscmage_misc.c | 17 +++++++++++++++++
emulators/ucon64/patches/patch-misc_misc.c | 17 +++++++++++++++++
4 files changed, 39 insertions(+), 2 deletions(-)
diffs (70 lines):
diff -r d54a046befd6 -r be31c2a14fcd emulators/ucon64/Makefile
--- a/emulators/ucon64/Makefile Sun Dec 20 13:07:58 2020 +0000
+++ b/emulators/ucon64/Makefile Sun Dec 20 15:15:01 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2020/12/05 13:16:36 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2020/12/20 15:15:01 fcambus Exp $
DISTNAME= ucon64-2.2.1-src
PKGNAME= ${DISTNAME:S/-src//}
+PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ucon64/}
diff -r d54a046befd6 -r be31c2a14fcd emulators/ucon64/distinfo
--- a/emulators/ucon64/distinfo Sun Dec 20 13:07:58 2020 +0000
+++ b/emulators/ucon64/distinfo Sun Dec 20 15:15:01 2020 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.11 2020/12/05 13:16:36 wiz Exp $
+$NetBSD: distinfo,v 1.12 2020/12/20 15:15:01 fcambus Exp $
SHA1 (ucon64-2.2.1-src.tar.gz) = bfc6fad1b82cb0d5ffe734f46d088567e8d93126
RMD160 (ucon64-2.2.1-src.tar.gz) = ca363e350be23fa2f083deb598efab307066b231
SHA512 (ucon64-2.2.1-src.tar.gz) = 34453399151e5ed256fdcf387b9d32a052718b264e51b99a2be251b90589337d13cd317f8d1aa7d3c8e39c8e407b22797d4608ec6d14b99c8673ec74f349f6c2
Size (ucon64-2.2.1-src.tar.gz) = 1476080 bytes
SHA1 (patch-libdiscmage_ioapi.h) = a5857b1623a3180d09e19815e261f23491aaad96
+SHA1 (patch-libdiscmage_misc.c) = df3124b713b9db5379fa2bfd529c5637b6e8f6d0
SHA1 (patch-misc_ioapi.h) = dc2939f8f404e25a7dcb841555024551f2962984
+SHA1 (patch-misc_misc.c) = 528e1f79df8c01841a95c0632becf8fcd1358255
diff -r d54a046befd6 -r be31c2a14fcd emulators/ucon64/patches/patch-libdiscmage_misc.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/ucon64/patches/patch-libdiscmage_misc.c Sun Dec 20 15:15:01 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-libdiscmage_misc.c,v 1.1 2020/12/20 15:15:02 fcambus Exp $
+
+Fixed crash in change_mem2() on 64-bit platforms.
+
+Patch from upstream: https://sourceforge.net/p/ucon64/svn/2822/
+
+--- libdiscmage/misc.c.orig 2020-07-03 08:13:04.000000000 +0000
++++ libdiscmage/misc.c
+@@ -1874,7 +1874,7 @@ change_mem2 (char *buf, size_t bufsize,
+
+ if (strpos == pos_1st_esc)
+ setindex = 0; // reset argument pointer
+- if (pos_1st_esc == (unsigned int) -1)
++ if (pos_1st_esc == (size_t) -1)
+ pos_1st_esc = strpos;
+
+ set = sets[setindex].data; // get next set of characters
diff -r d54a046befd6 -r be31c2a14fcd emulators/ucon64/patches/patch-misc_misc.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/ucon64/patches/patch-misc_misc.c Sun Dec 20 15:15:01 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-misc_misc.c,v 1.1 2020/12/20 15:15:02 fcambus Exp $
+
+Fixed crash in change_mem2() on 64-bit platforms.
+
+Patch from upstream: https://sourceforge.net/p/ucon64/svn/2822/
+
+--- misc/misc.c.orig 2020-07-03 08:09:50.000000000 +0000
++++ misc/misc.c
+@@ -501,7 +501,7 @@ change_mem2 (char *buf, size_t bufsize,
+
+ if (strpos == pos_1st_esc)
+ setindex = 0; // reset argument pointer
+- if (pos_1st_esc == (unsigned int) -1)
++ if (pos_1st_esc == (size_t) -1)
+ pos_1st_esc = strpos;
+
+ set = sets[setindex].data; // get next set of characters
Home |
Main Index |
Thread Index |
Old Index