summaryrefslogtreecommitdiff
path: root/src/input/libreal/real.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-11-29 19:43:01 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-11-29 19:43:01 +0000
commita0889ce51a988bba7ab0d66954972dfcfa2fa04e (patch)
tree4458a59ccc9f624043aa60a6b0ec3618fe98424e /src/input/libreal/real.c
parent7fc0320c1fdf4f31a787acf1cb92c3ff34a25ef9 (diff)
downloadxine-lib-a0889ce51a988bba7ab0d66954972dfcfa2fa04e.tar.gz
xine-lib-a0889ce51a988bba7ab0d66954972dfcfa2fa04e.tar.bz2
Fix buffer overrun reported by Roland Kay with JW's patch. Close bug #1603458.
CVS patchset: 8392 CVS date: 2006/11/29 19:43:01
Diffstat (limited to 'src/input/libreal/real.c')
-rw-r--r--src/input/libreal/real.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/libreal/real.c b/src/input/libreal/real.c
index f95b754a7..270fd16e4 100644
--- a/src/input/libreal/real.c
+++ b/src/input/libreal/real.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: real.c,v 1.23 2006/06/20 01:07:58 dgp85 Exp $
+ * $Id: real.c,v 1.24 2006/11/29 19:43:01 dgp85 Exp $
*
* special functions for real streams.
* adopted from joschkas real tools.
@@ -476,7 +476,7 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt
lprintf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth);
- n=asmrp_match(desc->stream[i]->asm_rule_book, bandwidth, rulematches);
+ n=asmrp_match(desc->stream[i]->asm_rule_book, bandwidth, rulematches, sizeof(rulematches)/sizeof(rulematches[0]));
for (j=0; j<n; j++) {
lprintf("asmrp rule match: %u for stream %u\n", rulematches[j], desc->stream[i]->stream_id);
sprintf(b,"stream=%u;rule=%u,", desc->stream[i]->stream_id, rulematches[j]);