[PATCH] xkb: don't call atoi(NULL) when parsing argv

Julien Cristau jcristau at debian.org
Mon Jul 1 10:44:31 PDT 2013


On Mon, Jul  1, 2013 at 19:39:30 +0200, Julien Cristau wrote:

> If the -ardelay or -arinterval options have no argument, there's no
> point trying to read it.
> 
> See
> http://www.forallsecure.com/bug-reports/feb3db57fc206d8df22ca53a6907f74973876272/
> 
> Reported-by: Alexandre Rebert <alexandre at cmu.edu>
> Signed-off-by: Julien Cristau <jcristau at debian.org>
> ---
>  xkb/xkbInit.c |    6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
This made me wonder if UseMsg() shouldn't just call exit() or
FatalError() so things like this wouldn't happen...

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20130701/7890ccf8/attachment.pgp>


More information about the xorg-devel mailing list