diff options
author | 2014-12-08 03:45:00 +0000 | |
---|---|---|
committer | 2014-12-08 03:45:00 +0000 | |
commit | aaba0d344625ec1938a3b1e65d9cd427e64f1fe1 (patch) | |
tree | a7f7df5d4233824c1b3545b615e60088d55a684a /lib/libssl/src | |
parent | Add some more makefiles that often cause a crash. (diff) | |
download | wireguard-openbsd-aaba0d344625ec1938a3b1e65d9cd427e64f1fe1.tar.xz wireguard-openbsd-aaba0d344625ec1938a3b1e65d9cd427e64f1fe1.zip |
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@
Diffstat (limited to 'lib/libssl/src')
0 files changed, 0 insertions, 0 deletions