changeset 25721:c0e76b0bb543

Don't oversize realchallenge buffers
author rtogni
date Sun, 13 Jan 2008 21:12:02 +0000
parents 333540254bb4
children c9e200f1693d
files stream/realrtsp/real.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/stream/realrtsp/real.c	Sun Jan 13 21:06:30 2008 +0000
+++ b/stream/realrtsp/real.c	Sun Jan 13 21:12:02 2008 +0000
@@ -88,14 +88,14 @@
 
   int   ch_len;
   int   i;
-  unsigned char zres[16], buf[128];
+  unsigned char zres[16], buf[64];
 
   /* initialize return values */
-  memset(response, 0, 64);
-  memset(chksum, 0, 34);
+  memset(response, 0, 41);
+  memset(chksum, 0, 9);
 
   /* initialize buffer */
-  memset(buf, 0, 128);
+  memset(buf, 0, 64);
   AV_WB32(buf, 0xa1e9149d);
   AV_WB32(buf+4, 0x0e6b3b59);
 
@@ -435,8 +435,8 @@
   char *session_id=NULL;
   rmff_header_t *h;
   char *challenge1;
-  char challenge2[64];
-  char checksum[34];
+  char challenge2[41];
+  char checksum[9];
   char *subscribe;
   char *buf = xbuffer_init(256);
   char *mrl=rtsp_get_mrl(rtsp_session);