Commit 42ecf284 authored by Rafaël Carré's avatar Rafaël Carré

ncurses: workaround a race condition spotted by akem. darkwired pwnage

parent b6a30543
......@@ -579,6 +579,11 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
case KEY_ENTER:
case 0x0d:
if( !p_sys->pp_plist || !p_sys->pp_plist[p_sys->i_box_plidx] )
{
b_ret = VLC_FALSE;
break;
}
if( p_sys->pp_plist[p_sys->i_box_plidx]->p_item->i_children
== -1 )
{
......
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