a0507d3d | 29-Dec-2017 |
zrj <rimvydas.jasinskas@gmail.com> |
newlocale(3): Add compat support for c++ runtime libs.
Implement simple 'private' env support that mimics the internal __get_locale_env(). Not to be used in a context of C.
While there, fix off by
newlocale(3): Add compat support for c++ runtime libs.
Implement simple 'private' env support that mimics the internal __get_locale_env(). Not to be used in a context of C.
While there, fix off by one in array index (_LC_LAST vs XLC_LAST).
show more ...
|
67480803 | 28-Dec-2017 |
zrj <rimvydas.jasinskas@gmail.com> |
mbtowc(3): Set EILSEQ on incomplete character case.
There are several cases where EILSEQ is already handled, yet not handled in other cases. Make it consistent.
In-discussion-with: swildner Taken-f
mbtowc(3): Set EILSEQ on incomplete character case.
There are several cases where EILSEQ is already handled, yet not handled in other cases. Make it consistent.
In-discussion-with: swildner Taken-from: OpenBSD
show more ...
|
e9586122 | 17-Dec-2017 |
zrj <rimvydas.jasinskas@gmail.com> |
libc/nmalloc: Handle size_t overflows in posix_memalign().
Some algorithms/programs try to heuristically deduce alignment rules. Instead of confusing them with minimal allocations for size == (size_
libc/nmalloc: Handle size_t overflows in posix_memalign().
Some algorithms/programs try to heuristically deduce alignment rules. Instead of confusing them with minimal allocations for size == (size_t)-7 and friends at different alignment values, just return ENOMEM since POSIX does not explictly specify how alignment overflows should behave. Programs should keep track of pointers they try to allocate (including size == 0 case too).
show more ...
|
e2caf0e7 | 08-Nov-2017 |
Matthew Dillon <dillon@apollo.backplane.com> |
libc and pthreads - Fix atfork issues with nmalloc, update dmalloc
* Implement atfork handling for nmalloc. As part of this, refactor some of nmalloc.
* Remove ZERO_LENGTH_PTR from nmalloc. Ins
libc and pthreads - Fix atfork issues with nmalloc, update dmalloc
* Implement atfork handling for nmalloc. As part of this, refactor some of nmalloc.
* Remove ZERO_LENGTH_PTR from nmalloc. Instead, force 0-byte allocations to allocate 1 byte. The standard requires unique pointers to be returned.
* For now go back to a single depot lock instead of a per-zone lock. It is unclear whether multi-threaded performance will suffer or not, but its the only way to implement atfork handling.
* Implement proper atfork interlocks for nmalloc via pthreads to avoid corruption when heavily threaded programs call fork().
* Bring dmalloc up to date in various ways, including properly implementing a minimum 16-byte alignment for allocations >= 16 bytes, and atfork handling. Also use a global depot lock for the same reason we use it in nmalloc, and implement a front-end magazine shortcut for any allocations <= 2MB.
Reported-by: mneumann
show more ...
|