From 2b028564f14d20cdda0c00d8ba100695b40501f5 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 23 Mar 2015 16:12:38 +0100 Subject: Avoid SIGFPE in wordexp [BZ #18100] Check for a zero divisor and integer overflow before performing division in arithmetic expansion. --- manual/pattern.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'manual') diff --git a/manual/pattern.texi b/manual/pattern.texi index da848c340b..d1b9275cf9 100644 --- a/manual/pattern.texi +++ b/manual/pattern.texi @@ -2006,7 +2006,8 @@ allocate room for. @comment POSIX.2 @item WRDE_SYNTAX There was a syntax error in the input string. For example, an unmatched -quoting character is a syntax error. +quoting character is a syntax error. This error code is also used to +signal division by zero and overflow in arithmetic expansion. @end table @end deftypefun -- cgit v1.2.3