diff options
author | 2015-04-02 21:09:51 +0000 | |
---|---|---|
committer | 2015-04-02 21:09:51 +0000 | |
commit | bf972878b12c5aa2aeb62e7a40fc5e5e6d9cbabf (patch) | |
tree | cb70ee8c9ad0641e67e03b80601e3f5ae83bce8b /usr.bin/mandoc/man.c | |
parent | Global variable free_memory is only used in sort.c's set_hw_params, (diff) | |
download | wireguard-openbsd-bf972878b12c5aa2aeb62e7a40fc5e5e6d9cbabf.tar.xz wireguard-openbsd-bf972878b12c5aa2aeb62e7a40fc5e5e6d9cbabf.zip |
Prevent integer overflow when parsing -S argument as percentage.
Also make sure that the parsed memory amount, stored in a long long,
won't be larger than SIZE_MAX to properly support 32 bit systems.
with input by and ok millert@
Diffstat (limited to 'usr.bin/mandoc/man.c')
0 files changed, 0 insertions, 0 deletions