]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Comment out ancient asserts for bug 930; resolve an xxx021
authorNick Mathewson <nickm@torproject.org>
Fri, 25 Mar 2011 19:44:02 +0000 (15:44 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 25 Mar 2011 20:28:38 +0000 (16:28 -0400)
src/common/memarea.c

index 6893639a6e92e39b3f919fcae58320d17ca34d65..a6b8c4ee9c98e5c4784ce5e82a7c6ee9547cf803 100644 (file)
@@ -59,7 +59,9 @@ realign_pointer(void *ptr)
 {
   uintptr_t x = (uintptr_t)ptr;
   x = (x+MEMAREA_ALIGN_MASK) & ~MEMAREA_ALIGN_MASK;
-  tor_assert(((void*)x) >= ptr); // XXXX021 remove this once bug 930 is solved
+  /* Reinstate this if bug 930 ever reappears
+  tor_assert(((void*)x) >= ptr);
+  */
   return (void*)x;
 }
 
@@ -241,9 +243,10 @@ memarea_alloc(memarea_t *area, size_t sz)
   }
   result = chunk->next_mem;
   chunk->next_mem = chunk->next_mem + sz;
-  // XXXX021 remove these once bug 930 is solved.
+  /* Reinstate these if bug 930 ever comes back
   tor_assert(chunk->next_mem >= chunk->u.mem);
   tor_assert(chunk->next_mem <= chunk->u.mem+chunk->mem_size);
+  */
   chunk->next_mem = realign_pointer(chunk->next_mem);
   return result;
 }