Mercurial > mplayer.hg
changeset 29413:cecb20da409e
stream/realrtsp/real.c: Fix another integer overflow
author | uau |
---|---|
date | Tue, 28 Jul 2009 16:25:03 +0000 |
parents | 139af822b6ce |
children | 3699268cc9dc |
files | stream/realrtsp/real.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/realrtsp/real.c Tue Jul 28 05:45:47 2009 +0000 +++ b/stream/realrtsp/real.c Tue Jul 28 16:25:03 2009 +0000 @@ -382,6 +382,8 @@ ph.flags=0; *buffer = xbuffer_ensure_size(*buffer, 12+size); if(rdt_rawdata) { + if (size < 12) + return 0; n=rtsp_read_data(rtsp_session, *buffer, size-12); return (n <= 0) ? 0 : n; }