summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc_macro.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2015-04-02 21:09:52 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2015-04-02 21:09:52 +0000
commit3b3e2458469c3b7a54a16224bfa57e6e0c0d6b73 (patch)
tree7aeceaabf0f25ad7441c445b2c6363ba968dec7a /usr.bin/mandoc/mdoc_macro.c
parent64ee1cd4a192376e6745215bef44b3ea6d27cd5a (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