diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2007-09-20 00:04:05 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2007-09-20 00:04:05 +0000 |
commit | d30179ff70d13b3799788b5d36609361732bbf55 (patch) | |
tree | 25682ed3a9ef0f9e6ea0fbbdbab71aa2a914a0d0 /app-i18n/skktools | |
parent | Added 2.6.23_rc7. (diff) | |
download | gentoo-2-d30179ff70d13b3799788b5d36609361732bbf55.tar.gz gentoo-2-d30179ff70d13b3799788b5d36609361732bbf55.tar.bz2 gentoo-2-d30179ff70d13b3799788b5d36609361732bbf55.zip |
Fixed bug #193121. the patch is from debian.
(Portage version: 2.1.3.9)
Diffstat (limited to 'app-i18n/skktools')
-rw-r--r-- | app-i18n/skktools/ChangeLog | 11 | ||||
-rw-r--r-- | app-i18n/skktools/files/digest-skktools-1.2-r1 | 3 | ||||
-rw-r--r-- | app-i18n/skktools/files/skktools-1.2-CVE-2007-3916.patch | 84 | ||||
-rw-r--r-- | app-i18n/skktools/skktools-1.2-r1.ebuild | 35 | ||||
-rw-r--r-- | app-i18n/skktools/skktools-1.2.ebuild | 6 |
5 files changed, 134 insertions, 5 deletions
diff --git a/app-i18n/skktools/ChangeLog b/app-i18n/skktools/ChangeLog index fee01475ab45..31846d7de4bf 100644 --- a/app-i18n/skktools/ChangeLog +++ b/app-i18n/skktools/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-i18n/skktools -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/skktools/ChangeLog,v 1.7 2006/11/07 06:04:16 usata Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/skktools/ChangeLog,v 1.8 2007/09/20 00:04:04 matsuu Exp $ + +*skktools-1.2-r1 (20 Sep 2007) + + 20 Sep 2007; MATSUU Takuto <matsuu@gentoo.org> + +files/skktools-1.2-CVE-2007-3916.patch, skktools-1.2.ebuild, + +skktools-1.2-r1.ebuild: + Fixed bug #193121. The patch is from debian. *skktools-1.2 (07 Nov 2006) diff --git a/app-i18n/skktools/files/digest-skktools-1.2-r1 b/app-i18n/skktools/files/digest-skktools-1.2-r1 new file mode 100644 index 000000000000..8a3d31a1ecc1 --- /dev/null +++ b/app-i18n/skktools/files/digest-skktools-1.2-r1 @@ -0,0 +1,3 @@ +MD5 eec35c1ce3fedf9b5d3939d4e625cf4d skktools-1.2.tar.gz 206799 +RMD160 cb157d231bf3132b6a9476fcafbeb30ec019811d skktools-1.2.tar.gz 206799 +SHA256 e68b6b2b3f6a62bc37e35aca42bbff69ab5bcd4d7e7061354f1a6f3419f14e80 skktools-1.2.tar.gz 206799 diff --git a/app-i18n/skktools/files/skktools-1.2-CVE-2007-3916.patch b/app-i18n/skktools/files/skktools-1.2-CVE-2007-3916.patch new file mode 100644 index 000000000000..afbac64bb1d8 --- /dev/null +++ b/app-i18n/skktools/files/skktools-1.2-CVE-2007-3916.patch @@ -0,0 +1,84 @@ +--- skktools-1.2+0.20061004.orig/skkdic-expr.c ++++ skktools-1.2+0.20061004/skkdic-expr.c +@@ -92,6 +92,7 @@ + char file_name[256]; + char okuri_tail_name[256]; + char okuri_head_name[256]; ++char tmpsubdir[256]; + + /* 作業用データベース */ + DBM *db; +@@ -127,28 +128,28 @@ + char dir_name[256]; + + db_remove_file(file_name); +- sprintf(pag_name, "%s.pag", file_name); ++ snprintf(pag_name, sizeof(pag_name), "%s.pag", file_name); + db_remove_file(pag_name); +- sprintf(dir_name, "%s.dir", file_name); ++ snprintf(dir_name, sizeof(dir_name), "%s.dir", file_name); + db_remove_file(dir_name); +- sprintf(dir_name, "%s.db", file_name); ++ snprintf(dir_name, sizeof(dir_name), "%s.db", file_name); + db_remove_file(dir_name); + + if (okurigana_flag) { + db_remove_file(okuri_head_name); +- sprintf(pag_name, "%s.pag", okuri_head_name); ++ snprintf(pag_name, sizeof(pag_name), "%s.pag", okuri_head_name); + db_remove_file(pag_name); +- sprintf(dir_name, "%s.dir", okuri_head_name); ++ snprintf(dir_name, sizeof(dir_name), "%s.dir", okuri_head_name); + db_remove_file(dir_name); +- sprintf(dir_name, "%s.db", okuri_head_name); ++ snprintf(dir_name, sizeof(dir_name), "%s.db", okuri_head_name); + db_remove_file(dir_name); + + db_remove_file(okuri_tail_name); +- sprintf(pag_name, "%s.pag", okuri_tail_name); ++ snprintf(pag_name, sizeof(pag_name), "%s.pag", okuri_tail_name); + db_remove_file(pag_name); +- sprintf(dir_name, "%s.dir", okuri_tail_name); ++ snprintf(dir_name, sizeof(dir_name), "%s.dir", okuri_tail_name); + db_remove_file(dir_name); +- sprintf(dir_name, "%s.db", okuri_tail_name); ++ snprintf(dir_name, sizeof(dir_name), "%s.db", okuri_tail_name); + db_remove_file(dir_name); + } + } +@@ -235,6 +236,7 @@ + int signo; + { + db_remove_files(); ++ rmdir(tmpsubdir); + signal(signo, SIG_DFL); + kill(getpid(), signo); + } +@@ -816,10 +818,16 @@ + exit(1); + } + +- sprintf(file_name, "%s/skkdic%d", tmpdir, getpid()); ++ snprintf(tmpsubdir, sizeof(tmpsubdir), "%s/skkdic%d", tmpdir, getpid()); ++ if (mkdir(tmpsubdir, 0700)) { ++ perror(tmpsubdir); ++ exit(1); ++ } ++ tmpdir = tmpsubdir; ++ snprintf(file_name, sizeof(file_name), "%s/skkdic%d", tmpdir, getpid()); + if (okurigana_flag) { +- sprintf(okuri_head_name, "%s/skkhead%d", tmpdir, getpid()); +- sprintf(okuri_tail_name, "%s/skktail%d", tmpdir, getpid()); ++ snprintf(okuri_head_name, sizeof(okuri_head_name), "%s/skkhead%d", tmpdir, getpid()); ++ snprintf(okuri_tail_name, sizeof(okuri_tail_name), "%s/skktail%d", tmpdir, getpid()); + } + set_signal_handler(); + db_make_files(); +@@ -845,6 +853,7 @@ + } + type_out(output); + db_remove_files(); ++ rmdir(tmpsubdir); + return 0; + } + diff --git a/app-i18n/skktools/skktools-1.2-r1.ebuild b/app-i18n/skktools/skktools-1.2-r1.ebuild new file mode 100644 index 000000000000..bec7701e3254 --- /dev/null +++ b/app-i18n/skktools/skktools-1.2-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/skktools/skktools-1.2-r1.ebuild,v 1.1 2007/09/20 00:04:04 matsuu Exp $ + +inherit elisp-common eutils + +DESCRIPTION="SKK utilities to manage dictionaries" +HOMEPAGE="http://openlab.jp/skk/" +SRC_URI="http://openlab.ring.gr.jp/skk/tools/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="ruby emacs" + +DEPEND="virtual/libc + >=dev-libs/glib-2" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-CVE-2007-3916.patch +} + +src_install() { + make DESTDIR=${D} install || die + + use ruby && dobin saihenkan.rb + use emacs && elisp-site-file-install skk-xml.el + + insinto /usr/share/skk + doins unannotation.awk + + dodoc ChangeLog README READMEs/* +} diff --git a/app-i18n/skktools/skktools-1.2.ebuild b/app-i18n/skktools/skktools-1.2.ebuild index 8eea8b9c27ad..81675bf85c0e 100644 --- a/app-i18n/skktools/skktools-1.2.ebuild +++ b/app-i18n/skktools/skktools-1.2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/skktools/skktools-1.2.ebuild,v 1.1 2006/11/07 06:04:16 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/skktools/skktools-1.2.ebuild,v 1.2 2007/09/20 00:04:04 matsuu Exp $ inherit elisp-common @@ -10,7 +10,7 @@ SRC_URI="http://openlab.ring.gr.jp/skk/tools/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~ppc ~x86" +KEYWORDS="~amd64 ~ppc ~x86" IUSE="ruby emacs" DEPEND="virtual/libc |