summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2014-10-20 19:04:45 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2014-10-20 19:04:45 +0000
commit259df7e4a5275a6b08bffc1c6fde4aed83665b36 (patch)
tree03edcffc3e56f9ac302e47b0ecfef0b85767539d /mandoc.h
parent69db7f6eed576f26d28cd412a0c4da07cbfed362 (diff)
downloadmandoc-259df7e4a5275a6b08bffc1c6fde4aed83665b36.tar.gz
Protect the roff parser from dividing by zero. ok schwarze@
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mandoc.h b/mandoc.h
index 21b131ab..cf22d6de 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -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 ===== */