CVSROOT: /cvs Module name: src Changes by: bc...@cvs.openbsd.org 2014/12/07 20:45:00
Modified files: lib/libc/stdlib: reallocarray.c Log message: 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@