aboutsummaryrefslogtreecommitdiff
path: root/posix/tst-getaddrinfo5.c
diff options
context:
space:
mode:
authorEyal Itkin <eyalit@checkpoint.com>2020-03-31 02:00:14 -0400
committerCarlos O'Donell <carlos@redhat.com>2020-03-31 21:48:54 -0400
commit49c3c37651e2d2ec4ff8ce21252bbbc08a9d6639 (patch)
tree627252d100433cfb1bcd5a600077cbf7ab4d43f7 /posix/tst-getaddrinfo5.c
parent768358b6a80742f6be68ecd9f952f4b60614df96 (diff)
downloadglibc-49c3c37651e2d2ec4ff8ce21252bbbc08a9d6639.zip
glibc-49c3c37651e2d2ec4ff8ce21252bbbc08a9d6639.tar.gz
glibc-49c3c37651e2d2ec4ff8ce21252bbbc08a9d6639.tar.bz2
Fix alignment bug in Safe-Linking
Alignment checks should be performed on the user's buffer and NOT on the mchunkptr as was done before. This caused bugs in 32 bit versions, because: 2*sizeof(t) != MALLOC_ALIGNMENT. As the tcache works on users' buffers it uses the aligned_OK() check, and the rest work on mchunkptr and therefore check using misaligned_chunk(). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'posix/tst-getaddrinfo5.c')
0 files changed, 0 insertions, 0 deletions