[vlc-devel] commit: Real pseudo-RTSP: prevent integer underflow ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jul 26 17:46:39 CEST 2009
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 26 18:39:42 2009 +0300| [a71cdcf96a1273ba8a6eafd36523ff5821649b2e] | committer: Rémi Denis-Courmont
Real pseudo-RTSP: prevent integer underflow
Pointed-out-by: tixxDZ <tixxdz at gmail.com> - DZCORE Labs, Algeria
(cherry picked from commit dc74600c97eb834c08674676e209afa842053aca)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a71cdcf96a1273ba8a6eafd36523ff5821649b2e
---
modules/access/rtsp/real.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/access/rtsp/real.c b/modules/access/rtsp/real.c
index 1c1a590..564eae5 100644
--- a/modules/access/rtsp/real.c
+++ b/modules/access/rtsp/real.c
@@ -598,6 +598,7 @@ int real_get_rdt_chunk(rtsp_client_t *rtsp_session, rmff_pheader_t *ph,
int n;
rmff_dump_pheader(ph, (char*)*buffer);
+ if (pf->length<12) return 0;
n=rtsp_read_data(rtsp_session, (uint8_t*)(*buffer + 12), ph->length - 12);
return (n <= 0) ? 0 : n+12;
}
More information about the vlc-devel
mailing list