diff options
| author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-03-16 14:07:04 +0000 |
|---|---|---|
| committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-27 14:46:47 +0100 |
| commit | 01359abab8f5b7f44e6aa4260eb5f3f878d7ff4a (patch) | |
| tree | d97bd4202391596c320eeff85be49451636e4bc8 /malloc/alloc_buffer_alloc_array.c | |
| parent | a05d3855313903679c604143cdc00f803d142a71 (diff) | |
| download | glibc-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
