From 68b5609af7d36e18f7388f8264700fa54b4f8561 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 20 Oct 2014 19:04:45 +0000 Subject: Protect the roff parser from dividing by zero. ok schwarze@ --- read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'read.c') diff --git a/read.c b/read.c index 1bcc8cac..6c042e3f 100644 --- a/read.c +++ b/read.c @@ -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 * Copyright (c) 2010-2014 Ingo Schwarze @@ -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", -- cgit v1.2.3-56-ge451