summaryrefslogtreecommitdiff
path: root/user/mbuffer/clamp-32-bit-parameters.patch
AgeCommit message (Collapse)AuthorFilesLines
2022-11-15user/mbuffer: add patch to clamp 32-bit parameters. fixes #834.Zach van Rijn1-0/+39
The number of physical and available pages will of course be correct on real 32-bit systems, but mbuffer does not account for the case of when a 64-bit system with more memory is running with a 32-bit personality. In this scenario, dynamic detection of system memory limits yields values that are not safe for use in a 32-bit environment.