aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-03-16 14:07:04 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-27 14:46:47 +0100
commit01359abab8f5b7f44e6aa4260eb5f3f878d7ff4a (patch)
treed97bd4202391596c320eeff85be49451636e4bc8 /malloc/alloc_buffer_alloc_array.c
parenta05d3855313903679c604143cdc00f803d142a71 (diff)
downloadglibc-01359abab8f5b7f44e6aa4260eb5f3f878d7ff4a.tar.xz
glibc-01359abab8f5b7f44e6aa4260eb5f3f878d7ff4a.zip
malloc: Fix alignment logic in obstack
If sizeof(ptrdiff_t) < sizeof(void*) the alignment logic was wrong: incorrectly assumed that base was already sufficiently aligned. Use more robust alignment logic: this one should work on any target. Note: this is an installed header so it must be namespace clean and portable hence it uses unsigned long for the alignment offset.
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions