diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2015-04-02 21:09:52 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2015-04-02 21:09:52 +0000 |
commit | 3b3e2458469c3b7a54a16224bfa57e6e0c0d6b73 (patch) | |
tree | 7aeceaabf0f25ad7441c445b2c6363ba968dec7a /usr.bin/mandoc/mdoc_macro.c | |
parent | 64ee1cd4a192376e6745215bef44b3ea6d27cd5a (diff) |
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/mdoc_macro.c')
0 files changed, 0 insertions, 0 deletions