Re: [PATCH] ui-patch: fix segfault when a path prefix is passed

2017-01-23 Thread Lukas Fleischer
On Sun, 22 Jan 2017 at 23:45:01, Jason A. Donenfeld wrote: > Nice catch, thanks. > > Merged. Note that I had a similar patch submitted to the mailing list about two months ago [1] and queued up in lf/for-jason as you told me back then. Could you check whether the additional changes I have in my

Re: [PATCH] ui-patch: fix segfault when a path prefix is passed

2017-01-22 Thread Jason A. Donenfeld
Nice catch, thanks. Merged. ___ CGit mailing list CGit@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/cgit

[PATCH] ui-patch: fix segfault when a path prefix is passed

2017-01-22 Thread Eric Wong
From: Eric Wong pathspec.c::parse_pathspec in git assumes the `argv' array is terminated with a NULL entry, so do not let it iterate past the end of the array. Signed-off-by: Eric Wong --- ui-patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-patch.c b/ui-patch.c in