summaryrefslogtreecommitdiffstats
path: root/read.c
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 /read.c
parent69db7f6eed576f26d28cd412a0c4da07cbfed362 (diff)
downloadmandoc-259df7e4a5275a6b08bffc1c6fde4aed83665b36.tar.gz
Protect the roff parser from dividing by zero. ok schwarze@
Diffstat (limited to 'read.c')
-rw-r--r--read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read.c b/read.c
index 101c478f..b595a1ae 100644
--- a/read.c
+++ b/read.c
@@ -211,6 +211,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"skipping request without numeric argument",
"skipping all arguments",
"skipping excess arguments",
+ "divide by zero",
"generic fatal error",