diff options
author | Christopher Ferris <cferris@google.com> | 2019-03-01 16:40:59 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2019-03-01 23:56:23 -0800 |
commit | a22f5d5175df5c42ec86d2c2db250edf1f64084c (patch) | |
tree | 66d2980a1b04626c7e4fc1437e96194b958ea8f8 /docs | |
parent | 0771b752f1b955e7ded6ccbbf825b0ae93439eb5 (diff) |
Make aligned_alloc match the standard.
Jemalloc does not verify that the size parameter is a multiple of
alignment. Fix this since it only went into P.
Fix the unit tests, and fix malloc debug/malloc hooks to handle this
new restrictive behavior.
Bug: 126944692
Test: Ran bionic unit tests.
Test: Ran bionic unit tests with malloc hooks enabled (no new tests fail).
Test: Ran bionic unit tests with malloc debug enabled (no new tests fail).
Test: Ran malloc debug unit tests.
Change-Id: I4d50785928815679c781ca729f998454d76b9192
Diffstat (limited to 'docs')
-rw-r--r-- | docs/status.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/status.md b/docs/status.md index 54385a470..85f9b60b8 100644 --- a/docs/status.md +++ b/docs/status.md @@ -48,8 +48,10 @@ New libc behavior in Q (API level 29): * Whole printf family now supports the GNU `%m` extension, rather than a special-case hack in `syslog` * `popen` now always uses `O_CLOEXEC`, not just with the `e` extension * Bug fixes to handling of UTF-8 U+fffe/U+ffff and code points above U+10ffff + * `aligned_alloc` correctly verifies that `size` is a multiple of `alignment` New libc functions in P (API level 28): + * `aligned_alloc` * `__freading`/`__fwriting` (completing <stdio_ext.h>) * `endhostent`/`endnetent`/`endprotoent`/`getnetent`/`getprotoent`/`sethostent`/`setnetent`/`setprotoent` (completing <netdb.h>) * `fexecve` |