Bug 198612

Summary: gnupg segfaults when searching for UTF-8 names
Product: [Fedora] Fedora Reporter: monniaux
Component: gnupgAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 1.4.4-6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-12 21:12:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description monniaux 2006-07-12 10:29:48 UTC
Description of problem:
gnupg segfaults when searching for keys in keyserver if the key contains a
non-ASCII UTF-8 character

Version-Release number of selected component (if applicable):
1.4.4


How reproducible:
always

Steps to Reproduce:
1. export LANG=en_US.UTF-8
2. gpg --keyserver pgp.mit.edu --search-key é (the last character is e acute)
3.
  
Actual results:
gpg: searching for "é" from hkp server pgp.mit.edu
*** buffer overflow detected ***: /usr/lib/gnupg/gpgkeys_hkp terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x7842b1]
/lib/libc.so.6(__vsprintf_chk+0x0)[0x783b48]
/lib/libc.so.6(_IO_default_xsputn+0x9c)[0x708817]
/lib/libc.so.6(_IO_vfprintf+0xfae)[0x6e2fc7]
/lib/libc.so.6(__vsprintf_chk+0xa1)[0x783be9]
/lib/libc.so.6(__sprintf_chk+0x30)[0x783b3c]
/usr/lib/gnupg/gpgkeys_hkp[0xbc2b52]
/usr/lib/gnupg/gpgkeys_hkp(main+0x750)[0xbc0db0]
/lib/libc.so.6(__libc_start_main+0xdc)[0x6bd724]
/usr/lib/gnupg/gpgkeys_hkp[0xbbfa61]


Expected results:
Normal key lookup.

Additional info:

Comment 1 Nalin Dahyabhai 2006-07-12 21:12:22 UTC
Upstream's fixed this in their tree, and it should be fixed in 1.4.4-6.