ports/142311: [PATCH] security/pecl-gnupg: Fix segmantation fault with new gnupg
Martin Wilke
miwi at FreeBSD.org
Mon Jan 4 17:20:03 UTC 2010
>Number: 142311
>Category: ports
>Synopsis: [PATCH] security/pecl-gnupg: Fix segmantation fault with new gnupg
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 04 17:20:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Martin Wilke
>Release: FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD miwi.homeunix.com 8.0-STABLE FreeBSD 8.0-STABLE #13: Sun Dec 20 19:02:56 CET 2009
>Description:
see synopsis
Reproduce code:
<?php echo get_class(new gnupg()); ?>
result:
segmantation fault
Added file(s):
- files/patch-gnupg.c
Port maintainer (mnag at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- pecl-gnupg-1.3.1_3.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/pecl-gnupg/Makefile,v
retrieving revision 1.9
diff -u -u -r1.9 Makefile
--- Makefile 15 Jul 2009 16:47:45 -0000 1.9
+++ Makefile 4 Jan 2010 17:10:45 -0000
@@ -7,7 +7,7 @@
PORTNAME= gnupg
PORTVERSION= 1.3.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
Index: files/patch-gnupg.c
===================================================================
RCS file: files/patch-gnupg.c
diff -N files/patch-gnupg.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-gnupg.c 4 Jan 2010 17:10:31 -0000
@@ -0,0 +1,10 @@
+--- gnupg.c.orig 2010-01-04 18:08:52.000000000 +0100
++++ gnupg.c 2010-01-04 18:09:14.000000000 +0100
+@@ -136,6 +136,7 @@
+ static void gnupg_res_init(gnupg_object *intern TSRMLS_DC){
+ /* init the gpgme-lib and set the default values */
+ gpgme_ctx_t ctx;
++ gpgme_check_version (0);
+ gpgme_new (&ctx);
+ gpgme_set_armor (ctx,1);
+ intern->ctx = ctx;
--- pecl-gnupg-1.3.1_3.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list