diff options
| author | Michael Brown | 2017-03-21 10:46:17 +0100 |
|---|---|---|
| committer | Michael Brown | 2017-03-21 11:01:51 +0100 |
| commit | 6ee62eb24220d8e364728c007f0d6cb8285e544a (patch) | |
| tree | 13135a1c0ae9efa5e279c45ad053aaa896ca6e22 /src/core | |
| parent | [dhcp] Allow vendor class to be changed in DHCP requests (diff) | |
| download | ipxe-6ee62eb24220d8e364728c007f0d6cb8285e544a.tar.gz ipxe-6ee62eb24220d8e364728c007f0d6cb8285e544a.tar.xz ipxe-6ee62eb24220d8e364728c007f0d6cb8285e544a.zip | |
[hermon] Avoid potential integer overflow when calculating memory mappings
When the area to be mapped straddles the 2GB boundary, the expression
(high+size) will overflow on the first loop iteration. Fix by using
(end-size), which cannot underflow.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
0 files changed, 0 insertions, 0 deletions
