Commit 4ea25c4d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix segfault on malformated command

Bug report credited to Matthew Hodgson
parent 87293632
...@@ -360,7 +360,11 @@ static int ExecuteCommand( vlm_t *p_vlm, char *psz_command, ...@@ -360,7 +360,11 @@ static int ExecuteCommand( vlm_t *p_vlm, char *psz_command,
psz_temp = FindEndCommand( psz_cmd ); psz_temp = FindEndCommand( psz_cmd );
if( psz_temp == NULL ) goto error; if( psz_temp == NULL )
{
p_message = vlm_MessageNew( "Incomplete command", psz_cmd );
goto error;
}
i_temp = psz_temp - psz_cmd; i_temp = psz_temp - psz_cmd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment