summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/reallocarray.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther2015-09-131-1/+2
| | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
* avoid left shift overflow in reallocarray.bcook2014-12-081-2/+2
| | | | | | | | Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting 1UL 32-bits to the left causes an overflow. This replaces the constant 1UL with (size_t)1 so that we get the correct constant size for the platform. discussed with tedu@ & deraadt@
* move reallocarray() to a seperate file so that -portable applicationsderaadt2014-05-081-0/+38
can avoid reinventing the wheel ok guenther schwarze