Re: [PATCH] banned.h: mark strncat() as banned
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jan 2, 2019, 18:00 UTC
- Message-ID
- <CAPig+cR2w3S==3-zstjmuB9jw4H-aPK7xqMeMLK-P94=+18jJQ@mail.gmail.com>
- In-Reply-To
- <20190102093846.6664-1-e@80x24.org>
On Wed, Jan 2, 2019 at 4:38 AM Eric Wong <e@80x24.org> wrote:
> > strncat() has the same quadratic behavior as strcat() and is > difficult-to-read and bug-prone. While it hasn't yet been a > problem in git iself, strncat() found it's way into 'master'
s/iself/itself/
> of cgit and caused segfaults on my system. > > Signed-off-by: Eric Wong <e@80x24.org>