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

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

Re: Patch bug - trips assertion


From: Andreas Gruenbacher
Subject: Re: Patch bug - trips assertion
Date: Sat, 14 Mar 2009 00:35:29 +0100
User-agent: KMail/1.9.9

On Saturday, 14 March 2009 0:07:50 Andreas Gruenbacher wrote:
> On Monday, 3 September 2007 10:31:14 Clarence Dang wrote:
> > Please save the attached files and try the following:
> >
> > ~~~~
> > $ patch --version
> > patch 2.5.4
> >
> > $ patch -p0 < misleading-no-newline-at-file-assert-fail.diff
> > patching file kpMainWindow_Tools.cpp
> > patch: util.c:415: savebuf: Assertion `s && size' failed.
> > Aborted
> > ~~~~
> >
> > The cause is the last line of the diff, "\ No newline at end of file", as
> > the file-to-be-patched does not actually end there.
>
> Thank you for the bug report. The bug still exists in version 2.5.9.
>
> The assertion simply seems wrong. In case you are still interested in this
> bug, a fixed version is available in the git repository of
> https://savannah.gnu.org/projects/patch on the "testing" branch:
>
>   git clone git://git.savannah.gnu.org/patch.git
>   cd patch

    git checkout testing

>   ./autogen.sh
>   ./configure
>   ./make

> Andreas 






reply via email to

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