From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Simon Wunderlich Date: Thu, 26 Jun 2014 16:40:14 +0200 References: <1403696158-20329-1-git-send-email-sven@narfation.org> In-Reply-To: <1403696158-20329-1-git-send-email-sven@narfation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201406261640.14546.sw@simonwunderlich.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv2 1/2] alfred-gpsd: Calculate size of global buffer and not of a single char 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 > The global buffer is 65536 bytes in size and not only 1 byte. This > statement evaluated to a negative value which was casted to an unsigned > value (aka... very large value). > > This is a regression was introduced in > 71dbc00fd879f1e592b07d8397f724fb3f69ac64 ("alfred: Use strncpy instead of > strcpy for string"). Both patches applied of this series (c67658a, 71b36fa). Thanks! Simon