summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/reallocarray.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Wrap stdint.h includes in ifdefs.Darren Tucker2015-02-221-0/+2
|
* upstream libc changeDamien Miller2014-12-181-2/+2
| | | | | | | | | | | | revision 1.2 date: 2014/12/08 03:45:00; author: bcook; state: Exp; lines: +2 -2; commitid: 7zWEBgJJOCZ2hvTV; avoid left shift overflow in reallocarray. 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@
* Add reallocarray to compat libraryDarren Tucker2014-12-091-0/+44