[vlc-devel] commit: Fix buffer overflow (CID 188) ( Rémi Duraffort )

git version control git at videolan.org
Fri Oct 10 23:20:30 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Duraffort <ivoire at videolan.org> | Fri Oct 10 20:41:25 2008 +0200| [893312a6399a41097a7f052f35f9bcfb73b46d35] | committer: Derk-Jan Hartman 

Fix buffer overflow (CID 188)
(cherry picked from commit 9e211e0c723545902a2fc38aa2e9a5d7baa4baa5)

Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=893312a6399a41097a7f052f35f9bcfb73b46d35
---

 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 eaae14d..3a88eb7 100644
--- a/modules/access/dvb/en50221.c
+++ b/modules/access/dvb/en50221.c
@@ -422,7 +422,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