[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] put in an extra assert, might find a bug these way



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	rendclient.c 
Log Message:
put in an extra assert, might find a bug these way


Index: rendclient.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendclient.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- rendclient.c	14 Apr 2004 05:18:21 -0000	1.38
+++ rendclient.c	16 Apr 2004 04:41:07 -0000	1.39
@@ -102,6 +102,7 @@
     goto err;
   }
 
+  assert(DIGEST_LEN + r <= RELAY_PAYLOAD_SIZE); /* we overran something */
   payload_len = DIGEST_LEN + r;
 
   if (connection_edge_send_command(NULL, introcirc,