diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2014-10-20 19:04:45 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2014-10-20 19:04:45 +0000 |
commit | 259df7e4a5275a6b08bffc1c6fde4aed83665b36 (patch) | |
tree | 03edcffc3e56f9ac302e47b0ecfef0b85767539d /mandoc.h | |
parent | 69db7f6eed576f26d28cd412a0c4da07cbfed362 (diff) | |
download | mandoc-259df7e4a5275a6b08bffc1c6fde4aed83665b36.tar.gz |
Protect the roff parser from dividing by zero. ok schwarze@
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -166,6 +166,7 @@ enum mandocerr { MANDOCERR_IT_NONUM, /* skipping request without numeric argument */ MANDOCERR_ARG_SKIP, /* skipping all arguments: macro args */ MANDOCERR_ARG_EXCESS, /* skipping excess arguments: macro ... args */ + MANDOCERR_DIVZERO, /* divide by zero */ MANDOCERR_FATAL, /* ===== start of fatal errors ===== */ |