stream/realrtsp/real.c: Fix another integer overflow

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29455 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
uau 2009-07-28 16:25:03 +00:00
parent 7c240e0268
commit 45b7b9374b
1 changed files with 2 additions and 0 deletions

View File

@ -382,6 +382,8 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer, int rdt_rawdata) {
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;
}