|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70432 segfault on import function
Submitted: 2015-09-05 00:41 UTC Modified: 2015-09-09 11:31 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: pianisteg at gmail dot com Assigned: jimjag (profile)
Status: Closed Package: gnupg (PECL)
PHP Version: 5.4.45 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pianisteg at gmail dot com
New email:
PHP Version: OS:


 [2015-09-05 00:41 UTC] pianisteg at gmail dot com
Putting invalid data to import function causes segmentation fault.


Put additional check in gnupg.c after line 1394 (after calling gpgme_op_import_result function):

 	if(!result || !result->imports){

Test script:

	$gpg = new gnupg();
	$r = $gpg->import("AAA");



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-09 11:28 UTC]
Automatic comment from SVN on behalf of jimjag
Log: Bug #70432      segfault on import function
 [2015-09-09 11:31 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: jimjag
 [2015-09-09 11:31 UTC]
fixed in trunk
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 19:01:27 2023 UTC