GNU bug report logs - #39165
[PATCH] sed: handle very long execution lines

Previous Next

Package: sed;

Reported by: Tobias Stoeckmann <tobias <at> stoeckmann.org>

Date: Fri, 17 Jan 2020 20:50:01 UTC

Severity: normal

Tags: patch

Full log


Message #8 received at 39165 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Tobias Stoeckmann <tobias <at> stoeckmann.org>
Cc: 39165 <at> debbugs.gnu.org
Subject: Re: bug#39165: [PATCH] sed: handle very long execution lines
Date: Fri, 17 Jan 2020 18:27:20 -0800
[Message part 1 (text/plain, inline)]
On Fri, Jan 17, 2020 at 1:11 PM Tobias Stoeckmann <tobias <at> stoeckmann.org> wrote:
> If sed is called with an excessively long execution line, then it is
> prone to an out of boundary memory access.
...

Good find and patch. Thank you!
I've adjusted your commit log slightly.

The "tiny change" note indicates that your diff is small enough that
you do not have to assign copyright. I have also made minor wording
changes, added the standard ChangeLog-style filename (function) lines
and added the obligatory bug-fix reference in NEWS.

We could add a test for this and even label it "expensive" or
"very-expensive", but so far I don't think it's worthwhile.

Will push the attached tomorrow.
[sed-2G-execute-line-segv.diff (application/octet-stream, attachment)]

This bug report was last modified 5 years and 209 days ago.

Previous Next


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