diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2019-01-06 23:59:04 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2019-01-06 23:59:04 +0000 |
commit | 866fe991ac4014aafb031f2651f52444e2fdf3c5 (patch) | |
tree | 4ec056647af07655cde3836a3cff930a19f09a7e /sys | |
parent | 9f0bfc517ca9f5b929eb7125d0da53f6705e6e2f (diff) | |
download | src-866fe991ac4014aafb031f2651f52444e2fdf3c5.tar.gz src-866fe991ac4014aafb031f2651f52444e2fdf3c5.zip |
Clamp tuklib_physmem() return value to SIZE_T_MAX.
On 32bit platforms it is possible to have (much) more physical RAM
than is mappable into single address space. In this case liblzma
scales the value into a request to mmap more address space than it is
theoretically possible.
Reported and tested by: pho
Reviewed by: delphij
Discussed with: emaste
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=342823
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions