# HG changeset patch # User uau # Date 1248798303 0 # Node ID cecb20da409e24ca29c7e7d03ca61464f59a9c02 # Parent 139af822b6ce49bd315fca649ddc5b8cf09b11a5 stream/realrtsp/real.c: Fix another integer overflow diff -r 139af822b6ce -r cecb20da409e stream/realrtsp/real.c --- 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; }