Dear Thomas Weber,
In message <1290600472-23147-1-git-send-email-we...@corscience.de> you wrote:
> Guard strchr/strlen from being called with NULL pointer.
> This line is crashing when command "env" is called without subcommand.
>
> The cmd is NULL in this case because the calling function "do_en
Guard strchr/strlen from being called with NULL pointer.
This line is crashing when command "env" is called without subcommand.
The cmd is NULL in this case because the calling function "do_env"
decremented the argc without checking if there are still arguments available.
Signed-off-by: Thomas We
2 matches
Mail list logo