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 | 68b5609af7d36e18f7388f8264700fa54b4f8561 (patch) | |
tree | 45cf9816d5bbd54a97f6b29689796143e6850060 /mandoc.h | |
parent | 2f5984e155e589b74309a8eaf5a13860cda36489 (diff) | |
download | mandoc-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 ===== */ |