]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge branch 'memarea_overflow_027_squashed' into maint-0.2.8
authorNick Mathewson <nickm@torproject.org>
Wed, 25 May 2016 13:22:02 +0000 (09:22 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 25 May 2016 13:22:02 +0000 (09:22 -0400)
1  2 
src/common/memarea.c

index 0a3fd009b0e89181a7d29d98556601d9906391d1,d6cad1140a016ac235327f02b14601015fcbb61f..173ed4e1cb8ea52690182c169038f4cf45217019
@@@ -83,10 -80,8 +83,9 @@@ typedef struct memarea_chunk_t 
    struct memarea_chunk_t *next_chunk;
    size_t mem_size; /**< How much RAM is available in mem, total? */
    char *next_mem; /**< Next position in mem to allocate data at.  If it's
-                    * greater than or equal to mem+mem_size, this chunk is
-                    * full. */
+                    * equal to mem+mem_size, this chunk is full. */
  #ifdef USE_ALIGNED_ATTRIBUTE
 +  /** Actual content of the memory chunk. */
    char mem[FLEXIBLE_ARRAY_MEMBER] __attribute__((aligned(MEMAREA_ALIGN)));
  #else
    union {