Bug 198612 - gnupg segfaults when searching for UTF-8 names
Summary: gnupg segfaults when searching for UTF-8 names
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnupg
Version: 5
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-12 10:29 UTC by monniaux
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: 1.4.4-6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-12 21:12:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.