Re: getusershell tests: Fail if empty lines are returned.

2024-05-18 Thread Collin Funk
Hi Bruno, On 5/18/24 12:16 AM, Bruno Haible wrote: >> I'll submit a bug report on the musl lists now. > > Thanks. I submitted a report yesterday but forgot to link here [1]. >> I don't think this function is used too much > > Probably no one noticed the bug before, because the typical use of

Re: getusershell tests: Fail if empty lines are returned.

2024-05-18 Thread Bruno Haible
Hi Collin, > I'll submit a bug report on the musl lists now. Thanks. > I don't think this function is used too much Probably no one noticed the bug before, because the typical use of this function is to test whether a given shell string is valid, as in [1], and for this use, the bug hardly

getusershell tests: Fail if empty lines are returned.

2024-05-17 Thread Collin Funk
... CollinFrom f77eb82cec43e043762c7e746375bc1879aa4849 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 17 May 2024 18:53:51 -0700 Subject: [PATCH] getusershell tests: Fail if empty lines are returned. * tests/test-getusershell.c (first_pass): Check the result of malloc. Make sure '\0' isn't