commit | 777aaaa706bcfe08c284aed06886db7d482af3f8 | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Fri Sep 09 17:32:39 2022 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Sep 23 15:11:13 2022 -0400 |
tree | 54d4c06f52dfcb11f56efb7d276e132c559c6127 | |
parent | 7210e457d5d166b4409bde402fd95a99e87cdfc5 [diff] |
common/memsize.c: Fix get_effective_memsize() to check for overflow Ensure that top of RAM can be represented by phys_size_t type. If RAM is too large or RAM base address is too upper then limit RAM size to prevent address space overflow. Signed-off-by: Pali Rohár <pali@kernel.org>