From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Wed, 11 Sep 2013 18:49:24 +0800 Message-ID: <2718336.kvyubBO8lj@diderot> In-Reply-To: <1378847522-13776-2-git-send-email-sven@narfation.org> References: <1378847522-13776-1-git-send-email-sven@narfation.org> <1378847522-13776-2-git-send-email-sven@narfation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [B.A.T.M.A.N.] [PATCH 01/11] batctl: Fix possible buffer overflow when using strncat Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org Cc: Sven Eckelmann On Tuesday, September 10, 2013 11:11:52 PM Sven Eckelmann wrote: > The length field (n) of strncat is used to specify the length of the buffer > without the \0 delimiter. strncat will add it even when it will write it to > the limit of n bytes was written. > > Signed-off-by: Sven Eckelmann > --- > bat-hosts.c | 2 +- > functions.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) Applied in revision f1e262c. Thanks, Marek