diff stream/realrtsp/real.c @ 21783:4511c04bc4a0

Fix potential buffer overflow in asm rules matching code
author rtogni
date Sun, 31 Dec 2006 13:27:53 +0000
parents fa99b3d31d13
children 04281be4fbdd
line wrap: on
line diff
--- a/stream/realrtsp/real.c	Sun Dec 31 11:09:53 2006 +0000
+++ b/stream/realrtsp/real.c	Sun Dec 31 13:27:53 2006 +0000
@@ -275,7 +275,7 @@
     int j=0;
     int n;
     char b[64];
-    int rulematches[16];
+    int rulematches[MAX_RULEMATCHES];
 
 #ifdef LOG
     printf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth);