summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c
AgeCommit message (Collapse)AuthorFilesLines
2015-09-13Wrap <stdlib.h> so that calls go direct and the symbols not in theguenther1-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.
2014-12-08avoid left shift overflow in reallocarray.bcook1-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@
2014-05-08move reallocarray() to a seperate file so that -portable applicationsderaadt1-0/+38
can avoid reinventing the wheel ok guenther schwarze