From a0889ce51a988bba7ab0d66954972dfcfa2fa04e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Wed, 29 Nov 2006 19:43:01 +0000 Subject: 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 --- src/input/libreal/real.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input/libreal/real.c') 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; jstream[i]->stream_id); sprintf(b,"stream=%u;rule=%u,", desc->stream[i]->stream_id, rulematches[j]); -- cgit v1.2.3