BUG: Segmentation fault with gnupg-1.4.x on Solaris with "--debug 16"
m.heneka at googlemail.com
Tue Aug 19 16:33:38 CEST 2008
I discovered a bug in gnupg-1.4.x and possibly in later versions. The
segmentation fault occurs on Solaris when decrypting/encrypting a file with
the debug mode for IO-buffers ("--debug 16"). The problem is in the
following line of "iobuf.c: iofbuf_close()":
log_debug ("iobuf-%d.%d: close `%s'\n", a->no, a->subno, a->desc);
An IO-buffer with desc==NULL causes the crash. The glibc feature
"printf("%s", NULL);" is not available in the Solaris implementation of
glibc. The bug can be fixed with:
log_debug ("iobuf-%d.%d: close `%s'\n", a->no, a->subno, a->desc ? a->desc :
or by introducing a function gpg_nonullstr() like in
This article describes problems with this glibc feature. See also the links
specific to Solaris.
More information about the Gnupg-devel