mirror of
https://github.com/videolan/vlc.git
synced 2024-11-25 10:53:36 +08:00
Fix buffer overflow (CID 188)
This commit is contained in:
parent
fe7f66314c
commit
9e211e0c72
@ -427,7 +427,7 @@ static void SessionOpen( access_t * p_access, uint8_t i_slot,
|
||||
if ( !p_sys->p_sessions[i_session_id - 1].i_resource_id )
|
||||
break;
|
||||
}
|
||||
if ( i_session_id == MAX_SESSIONS )
|
||||
if ( i_session_id > MAX_SESSIONS )
|
||||
{
|
||||
msg_Err( p_access, "too many sessions !" );
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user