diff options
author | taca <taca> | 2011-05-29 01:36:24 +0000 |
---|---|---|
committer | taca <taca> | 2011-05-29 01:36:24 +0000 |
commit | 0616c15371e416ccb8ef8e1311379fcb115a3ded (patch) | |
tree | d6b0a84b83d59913424339715ebfeee7423ba1bd /lang | |
parent | 1554a95506aff2aaf2f693d267f30717742db59d (diff) | |
download | pkgsrc-0616c15371e416ccb8ef8e1311379fcb115a3ded.tar.gz |
Add a patch for CVE-2011-0188 from repository as ruby19-base.
Bump PKGREVISION.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby18-base/Makefile | 4 | ||||
-rw-r--r-- | lang/ruby18-base/patches/patch-ext_bigdecimal_bigdecimal.c | 19 |
2 files changed, 21 insertions, 2 deletions
diff --git a/lang/ruby18-base/Makefile b/lang/ruby18-base/Makefile index adeb46ecba9..6afbcf226e1 100644 --- a/lang/ruby18-base/Makefile +++ b/lang/ruby18-base/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.59 2011/03/28 14:10:25 taca Exp $ +# $NetBSD: Makefile,v 1.60 2011/05/29 01:36:24 taca Exp $ # DISTNAME= ${RUBY_DISTNAME} PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_SUFFIX} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= lang ruby MASTER_SITES= ${MASTER_SITE_RUBY} diff --git a/lang/ruby18-base/patches/patch-ext_bigdecimal_bigdecimal.c b/lang/ruby18-base/patches/patch-ext_bigdecimal_bigdecimal.c new file mode 100644 index 00000000000..4b33830cd83 --- /dev/null +++ b/lang/ruby18-base/patches/patch-ext_bigdecimal_bigdecimal.c @@ -0,0 +1,19 @@ +$NetBSD: patch-ext_bigdecimal_bigdecimal.c,v 1.1 2011/05/29 01:36:24 taca Exp $ + +* Fix for CVE-2011-0188 from repository, r30993. + +--- ext/bigdecimal/bigdecimal.c.orig 2010-06-08 07:49:18.000000000 +0000 ++++ ext/bigdecimal/bigdecimal.c +@@ -2032,9 +2032,9 @@ static int gnAlloc=0; /* Memory allocati + VP_EXPORT void * + VpMemAlloc(U_LONG mb) + { +- void *p = xmalloc((unsigned int)mb); +- if(!p) { +- VpException(VP_EXCEPTION_MEMORY,"failed to allocate memory",1); ++ void *p = xmalloc(mb); ++ if (!p) { ++ VpException(VP_EXCEPTION_MEMORY, "failed to allocate memory", 1); + } + memset(p,0,mb); + #ifdef _DEBUG |