Further harden glibc malloc metadata against 1-byte overflows.
commit17f487b7afa7cd6c316040f3e6c86dc96b2eec30
authorDJ Delorie <dj@delorie.com>
Fri, 17 Mar 2017 19:31:38 +0000 (17 15:31 -0400)
committerDJ Delorie <dj@delorie.com>
Fri, 17 Mar 2017 19:31:38 +0000 (17 15:31 -0400)
tree5836e9e3b024ffd8c45029f7a2934aad44229b71
parentb170d2e7ab998180abbd24fdd6c03ecb4293d000
Further harden glibc malloc metadata against 1-byte overflows.

Additional check for chunk_size == next->prev->chunk_size in unlink()

2017-03-17  Chris Evans  <scarybeasts@gmail.com>

* malloc/malloc.c (unlink): Add consistency check between size and
next->prev->size, to further harden against 1-byte overflows.
ChangeLog
malloc/malloc.c