[Top][All Lists]

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

potential NULL-deref in execute.c

From: Jim Meyering
Subject: potential NULL-deref in execute.c
Date: Sat, 11 Jun 2011 09:06:04 +0200

In execute.c, coverity dinged this potential NULL-deref:

163           return grub_strtoul (grub_env_get ("?"), NULL, 10);

If grub_env_get ("?") can indeed return NULL,
you'll want to accommodate the possibility.
It would be nice to do that even if somehow
a NULL return is not possible, just to avoid the FP.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]