Re: patch crash related to remove_special_lines

2023-07-12 Thread Otto Moerbeek
On Tue, Jul 11, 2023 at 09:13:38PM +0200, Theo Buehler wrote: > On Tue, Jul 11, 2023 at 08:35:31PM +0200, Theo Buehler wrote: > > On Tue, Jul 11, 2023 at 02:32:48PM +0200, Theo Buehler wrote: > > > On Tue, Jul 11, 2023 at 11:48:57AM +0100, Stuart Henderson wrote: > > > > I ran into a segfault with

Re: patch crash related to remove_special_lines

2023-07-12 Thread Florian Obser
looks reasonable. OK florian On 2023-07-11 21:13 +02, Theo Buehler wrote: > On Tue, Jul 11, 2023 at 08:35:31PM +0200, Theo Buehler wrote: >> On Tue, Jul 11, 2023 at 02:32:48PM +0200, Theo Buehler wrote: >> > On Tue, Jul 11, 2023 at 11:48:57AM +0100, Stuart Henderson wrote: >> > > I ran into a se

Re: patch crash related to remove_special_lines

2023-07-11 Thread Theo Buehler
On Tue, Jul 11, 2023 at 08:35:31PM +0200, Theo Buehler wrote: > On Tue, Jul 11, 2023 at 02:32:48PM +0200, Theo Buehler wrote: > > On Tue, Jul 11, 2023 at 11:48:57AM +0100, Stuart Henderson wrote: > > > I ran into a segfault with patch(1) in a port, here's a test case with a > > > minimal reproducer

Re: patch crash related to remove_special_lines

2023-07-11 Thread Theo Buehler
On Tue, Jul 11, 2023 at 02:32:48PM +0200, Theo Buehler wrote: > On Tue, Jul 11, 2023 at 11:48:57AM +0100, Stuart Henderson wrote: > > I ran into a segfault with patch(1) in a port, here's a test case with a > > minimal reproducer. > > > > $ echo foo > test > > $ perl -e 'print "--- test.orig\n+++

Re: patch crash related to remove_special_lines

2023-07-11 Thread Theo Buehler
On Tue, Jul 11, 2023 at 11:48:57AM +0100, Stuart Henderson wrote: > I ran into a segfault with patch(1) in a port, here's a test case with a > minimal reproducer. > > $ echo foo > test > $ perl -e 'print "--- test.orig\n+++ test\n@@ -1,1 +1,2 @@\n foo\n+" . 'x' x > 32768 . "\n\\ No newline at end

patch crash related to remove_special_lines

2023-07-11 Thread Stuart Henderson
I ran into a segfault with patch(1) in a port, here's a test case with a minimal reproducer. $ echo foo > test $ perl -e 'print "--- test.orig\n+++ test\n@@ -1,1 +1,2 @@\n foo\n+" . 'x' x 32768 . "\n\\ No newline at end of file\n"' > test.patch $ patch < test.patch Hmm... Looks like a unified di