From: Jonathan Nieder Date: Tue, 03 Oct 2017 22:59:19 GMT Subject: Re: [PATCH] test-stringlist: avoid buffer underrun when sorting nothing Message-ID: <20171003225919.GF19555@aiede.mtv.corp.google.com> In-Reply-To: <16d3a84c-b695-a55d-0263-885d0d34ae95@web.de> René Scharfe wrote: > Check if the strbuf containing data to sort is empty before attempting > to trim a trailing newline character. > > Signed-off-by: Rene Scharfe > --- > t/helper/test-string-list.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks for fixing it. Reviewed-by: Jonathan Nieder