summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2015-04-02 21:09:51 +0000
committertobias <tobias@openbsd.org>2015-04-02 21:09:51 +0000
commitbf972878b12c5aa2aeb62e7a40fc5e5e6d9cbabf (patch)
treecb70ee8c9ad0641e67e03b80601e3f5ae83bce8b /usr.bin/mandoc/man.c
parentGlobal variable free_memory is only used in sort.c's set_hw_params, (diff)
downloadwireguard-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