[vlc-devel] commit: Fix buffer overflow (CID 188) ( Rémi Duraffort )
git version control
git at videolan.org
Fri Oct 10 20:43:24 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Oct 10 20:41:25 2008 +0200| [9e211e0c723545902a2fc38aa2e9a5d7baa4baa5] | committer: Rémi Duraffort
Fix buffer overflow (CID 188)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e211e0c723545902a2fc38aa2e9a5d7baa4baa5
---
modules/access/dvb/en50221.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/dvb/en50221.c b/modules/access/dvb/en50221.c
index 5f14d67..9b7f98a 100644
--- a/modules/access/dvb/en50221.c
+++ b/modules/access/dvb/en50221.c
@@ -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;
More information about the vlc-devel
mailing list