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

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

Re: gettext 0.14.1 fails format-java-1 and format-java-2 tests due to ba


From: Bruno Haible
Subject: Re: gettext 0.14.1 fails format-java-1 and format-java-2 tests due to bad freeing of pointer
Date: Mon, 20 Sep 2004 13:13:58 +0200
User-agent: KMail/1.5

Richard Lloyd wrote:
> On an HP-UX 11.11 PA-RISC platform using gcc 3.4.2, gettext 0.14.1 fails
> "gmake check" with the format-java-1 and format-java-2 tests due to an
> incorrect pointer passed to freesa() in gettext-tools/src/format-java.c.
> ...
> What I would suggest is something like
> adding another pointer copy called element_original thus (line 168 again):
>
>         char *element,*element_original;
>
> Then straight after the xallocsa() call in line 197:
>
>         element_original=element;
>
> Then, finally, modify all occurrences of freesa (element); to
> freesa (element_original); elsewhere in the function.

Thanks a lot for this report and fix; it will be corrected in the next
gettext release, like you point out.

Bruno





reply via email to

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