[PATCH] xclipboard: avoid overflow crash when building labels

Julien Cristau jcristau at debian.org
Fri Jul 8 11:34:48 PDT 2011


On Fri, Jul  8, 2011 at 11:01:45 -0700, Kees Cook wrote:

> This replaces sprintf with snprintf to avoid crashing when creating
> various labels.
> 
> https://bugs.launchpad.net/ubuntu/+source/x11-apps/+bug/792642
> 
> Signed-off-by: Kees Cook <kees.cook at canonical.com>
> ---
>  xclipboard.c |    3 ++-
>  xcutsel.c    |    4 ++--
>  2 files changed, 4 insertions(+), 3 deletions(-)
> 
asprintf or XtAsprintf maybe?

Cheers,
Julien


More information about the xorg-devel mailing list