From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [213.95.27.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC87524B26 for ; Mon, 4 Mar 2024 12:49:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.27.120 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709556584; cv=none; b=YICB4u0wHbcakrTRTypuiDQ3rEmaYJ6Wpw0jcDOnTESXt9fg0VQghpEjgzd8lOdMH+dXIMm6WO0DFsmYI+c3QudZ15eVPvzqhsrHDcauiGjumhZSlvu/wJXlkoTGfMifAcDkh5G020H1dM8yOtbGSWyjKQJC1QU5R/RmTK4Mok0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709556584; c=relaxed/simple; bh=iJMCS6fEhB7JnveJf5wu0cc8FIqaPppvfUPFKEREdSc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=M5u9rVx8vZdZJ0U1d0TDHYgvfLJaTz/84bl3Hq0+jDqupxIeE+XXFAIuJLKzO7kiqEYBbLCpjBXXm3MN4RQqD5F2amWm0Urqe5t9XK9BjtRDsrJtNMVASkbVFk9SWcBB3ahdfMZhpkhDP7bveT5Z/guzTw4z6G/B1OgWh2fNmsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org; spf=pass smtp.mailfrom=gnumonks.org; arc=none smtp.client-ip=213.95.27.120 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=netfilter.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gnumonks.org Received: from [78.30.33.11] (port=35096 helo=gnumonks.org) by ganesha.gnumonks.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rh7lB-00CGBZ-6s; Mon, 04 Mar 2024 13:49:39 +0100 Date: Mon, 4 Mar 2024 13:49:36 +0100 From: Pablo Neira Ayuso To: Donald Yandt Cc: netfilter-devel@vger.kernel.org Subject: Re: [PATCH conntrack-tools v2 0/3] fix potential memory loss and exit codes Message-ID: References: <20240302160802.7309-1-donald.yandt@gmail.com> Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240302160802.7309-1-donald.yandt@gmail.com> X-Spam-Score: -1.9 (-) On Sat, Mar 02, 2024 at 11:07:59AM -0500, Donald Yandt wrote: > Vector data will be lost if reallocation fails, leading to undefined behaviour. > Additionally, the indices of the allocated vector data can be represented more > precisely by using size_t as the index type. > > If no configuration file or an invalid parameter is provided, the daemon should exit with > a failure status. Applied. I move this description chunks where they belong to