diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2014-12-08 03:45:01 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2014-12-08 03:45:01 +0000 |
commit | 88b862822f2e48b4c44b3ba6109a67f4e740f42b (patch) | |
tree | 3993836144df81b49b7f04b45d9e616d8814b01f /libexec | |
parent | 9d2b414e9c2cd9eae38ac1aec60343dac2fabaee (diff) |
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 'libexec')
0 files changed, 0 insertions, 0 deletions