GNU bug report logs - #25390
Segfault with sed 4.3

Previous Next

Package: sed;

Reported by: "S. Gilles" <sgilles <at> math.umd.edu>

Date: Sun, 8 Jan 2017 07:09:01 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Assaf Gordon <assafgordon <at> gmail.com>, "S. Gilles" <sgilles <at> math.umd.edu>
Cc: 25390 <at> debbugs.gnu.org, Gnulib bugs <bug-gnulib <at> gnu.org>, GNU grep developers <grep-devel <at> gnu.org>
Subject: bug#25390: Segfault with sed 4.3
Date: Sun, 8 Jan 2017 12:49:42 -0800
[Message part 1 (text/plain, inline)]
Assaf Gordon wrote:
> The immediate cause is somewhere in gnulib's DFA module.

The bug was introduced in Gnulib, in commit 
403adf1b40897ba108075008c10bd38d937e1539 dated 2016-11-25 and labeled "dfa: 
addition of new state on demand". It's not a bug that grep runs into, since grep 
doesn't use the newline transition that sed does. I installed the attached patch 
to fix the Gnulib bug. I'll leave Bug#25390 open, as I assume you'll want to 
check it for 'sed' and add a test case for 'sed'.
[0001-dfa-fix-reallocation-bug-when-matching-newlines.patch (text/x-diff, attachment)]

This bug report was last modified 8 years and 120 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.