diff options
author | knu <knu@FreeBSD.org> | 2002-10-05 19:24:29 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-10-05 19:24:29 +0800 |
commit | 1c2589fbac84641077f3c880be660c1f4a11d40b (patch) | |
tree | 894dd0cbc5fee36d723cfc74a6c8bc2c91bf0eac /japanese | |
parent | 5f6126d4abd22d54a88f82c7c936c7f8de7cf0fc (diff) | |
download | freebsd-ports-gnome-1c2589fbac84641077f3c880be660c1f4a11d40b.tar.gz freebsd-ports-gnome-1c2589fbac84641077f3c880be660c1f4a11d40b.tar.zst freebsd-ports-gnome-1c2589fbac84641077f3c880be660c1f4a11d40b.zip |
Fix a bug where the following piece of code causes coredump:
perl -e '
use Text::Kakasi;
Text::Kakasi::getopt_argv("kakasi", "-ieuc", "-Ha");
Text::Kakasi::do_kakasi("\xa1\xb3");
'
Found by: GOTO Kentaro <gotoken@notwork.org>
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/p5-Text-Kakasi/Makefile | 1 | ||||
-rw-r--r-- | japanese/p5-Text-Kakasi/files/patch-Kakasi.xs | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/japanese/p5-Text-Kakasi/Makefile b/japanese/p5-Text-Kakasi/Makefile index 3c6baed601cf..7682d199835a 100644 --- a/japanese/p5-Text-Kakasi/Makefile +++ b/japanese/p5-Text-Kakasi/Makefile @@ -7,6 +7,7 @@ PORTNAME= Text-Kakasi PORTVERSION= 1.05 +PORTREVISION= 1 CATEGORIES= japanese perl5 MASTER_SITES= http://www.daionet.gr.jp/~knok/kakasi/ diff --git a/japanese/p5-Text-Kakasi/files/patch-Kakasi.xs b/japanese/p5-Text-Kakasi/files/patch-Kakasi.xs new file mode 100644 index 000000000000..b4299f41d93c --- /dev/null +++ b/japanese/p5-Text-Kakasi/files/patch-Kakasi.xs @@ -0,0 +1,11 @@ +--- Kakasi.xs.orig Wed Apr 11 16:58:38 2001 ++++ Kakasi.xs Sat Oct 5 20:20:42 2002 +@@ -110,7 +110,7 @@ + tmp ++; + cur ++; + } +- free(rtmp); ++ if (*rtmp) free(rtmp); + } while (cur < slen); + if (ret != NULL) { + RETVAL = newSVpv(ret, rcur - 1); |