bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/3] sed: Fix infinite loop on some false multi-byte matches


From: Paolo Bonzini
Subject: Re: [PATCH 1/3] sed: Fix infinite loop on some false multi-byte matches
Date: Mon, 27 Feb 2012 17:08:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1

> Index: sed-4.2.1/sed/execute.c
> ===================================================================
> --- sed-4.2.1.orig/sed/execute.c
> +++ sed-4.2.1/sed/execute.c
> @@ -261,7 +261,7 @@ str_append(to, string, length)
>           n = 1;
>         }
>  
> -        if (n > 0)
> +        if ((n != (size_t) -2) && (n > 0))
>         {
>           string += n;
>           length -= n;

Hi Stanislav,

this was already fixed in git.  See commit 20f68fb1.

Thanks for your work!

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]