[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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@cmu.edu>
> Signed-off-by: Julien Cristau <jcristau@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

Attachment: signature.asc
Description: Digital signature


Reply to: