[or-cvs] Fix an underflow in buffer use conting.

Nick Mathewson nickm at seul.org
Wed Jun 8 21:55:04 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv11534/src/or

Modified Files:
	buffers.c 
Log Message:
Fix an underflow in buffer use conting.

Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/buffers.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- buffers.c	8 Jun 2005 20:17:05 -0000	1.155
+++ buffers.c	8 Jun 2005 21:55:02 -0000	1.156
@@ -669,6 +669,7 @@
     tor_assert(_buf_end(buf) == buf->mem);
     memcpy(buf->mem, string+string_len, len2);
     buf->datalen += len2;
+    buf_total_used += len2;
   }
   if (buf->datalen > buf->highwater)
     buf->highwater = buf->datalen;



More information about the tor-commits mailing list