[PATCH] xclipboard: avoid overflow crash when building labels

Julien Cristau jcristau at debian.org
Fri Jul 8 12:14:17 PDT 2011


On Fri, Jul  8, 2011 at 12:10:31 -0700, Kees Cook wrote:

> I've been told in the past not use asprintf because it isn't portable,

Right.

> and I do not find XtAsprintf in the include files:
> 
> ../xclipboard/xclipboard.c:337:2: warning: implicit declaration of function ‘XtAsprintf’
> ...
> ../xclipboard/xclipboard.c:337: undefined reference to `XtAsprintf'
> collect2: ld returned 1 exit status
> 
It's in libXt since 1.1.0.

Cheers,
Julien


More information about the xorg-devel mailing list