Subject: bug#22127: Segfault / null pointer access in function str_append_modified()

From: Assaf Gordon <[email-masked]>
Date: Sat, 28 Jan 2017 23:11:06 +0000

tags 22172 fixed
close 22172
stop

Hello,

On Thu, Dec 17, 2015 at 06:56:51PM -0800, Jim Meyering wrote:
>On Wed, Dec 9, 2015 at 3:42 AM, Hanno Böck <[email-masked]> wrote:
>> With a malformed input (see attachmend) sed can crash in the function
>> str_append_modified()
>
>Thank you for the report.
>I've reduced it to the following one-liner (demonstrating
>failure with an ASAN-enabled binary), and have attached
>a patch:

The fix was pushed here:
  http://git.savannah.gnu.org/cgit/sed.git/commit/?id=67b3fcc980
and was included in sed-4.3.

I'm marking this as fixed and closing the bug.

regards,
 - assaf