Commit 2905291a authored by Nick Mathewson's avatar Nick Mathewson 🥔
Browse files

r17659@tombo: nickm | 2008-08-06 12:22:11 -0400

 Fix bug 794: recover 3 bytes wasted per memory chunk.  Fix from rovv.


svn:r16447
parent 37432c06
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4,6 +4,10 @@ Changes in version 0.2.1.5-alpha - 2008-08-??
      IPv6 addresses.
    - Generate and accept IPv6 addresses in many protocol elements.

  o Minor bugfixes:
    - Recover 3-7 bytes that were wasted per memory chunk.  Fixes bug
      794; bug spotted by rovv.  Bugfix on 0.2.0.1-alpha.


Changes in version 0.2.1.4-alpha - 2008-08-04
  o Major bugfixes:
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ struct mp_chunk_t {
};

/** Number of extra bytes needed beyond mem_size to allocate a chunk. */
#define CHUNK_OVERHEAD (sizeof(mp_chunk_t)-1)
#define CHUNK_OVERHEAD STRUCT_OFFSET(mp_chunk_t, mem[0])

/** Given a pointer to a mp_allocated_t, return a pointer to the memory
 * item it holds. */