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 /read.c | |
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 'read.c')
-rw-r--r-- | read.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.91 2014/10/18 15:57:34 schwarze Exp $ */ +/* $Id: read.c,v 1.92 2014/10/20 19:04:45 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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", |