[Top][All Lists]

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

[bug-gettext] [bug #43720] msgfilter aborts with empty msgstr

From: Daiki Ueno
Subject: [bug-gettext] [bug #43720] msgfilter aborts with empty msgstr
Date: Fri, 28 Nov 2014 04:29:54 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0

Update of bug #43720 (project gettext):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 


Follow-up Comment #1:

Thanks for the report.  It seems you hit a corner case.  When the read buffer
is filled up, msgfilter.c:prepare_read tries to increase the size by 1.5 times
larger than the previous size:

if (l->length == l->allocated)
    l->allocated = l->allocated + (l->allocated >> 1);
    l->result = (char *) xrealloc (l->result, l->allocated);

However, if the original l->allocated is 1, the size doesn't change.

I've pushed a fix:


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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