aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit68b5609af7d36e18f7388f8264700fa54b4f8561 (patch)
tree45cf9816d5bbd54a97f6b29689796143e6850060 /mandoc.h
parent2f5984e155e589b74309a8eaf5a13860cda36489 (diff)
downloadmandoc-68b5609af7d36e18f7388f8264700fa54b4f8561.tar.gz
mandoc-68b5609af7d36e18f7388f8264700fa54b4f8561.tar.zst
mandoc-68b5609af7d36e18f7388f8264700fa54b4f8561.zip
Protect the roff parser from dividing by zero. ok schwarze@
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index e7eefc07..b7493f4b 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.163 2014/10/14 02:16:06 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.164 2014/10/20 19:04:45 kristaps Exp $ */
/*
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 ===== */