From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH v7 04/19] eal: fix wrong strnlen() return value in 32bit icc Date: Mon, 16 Feb 2015 15:51:39 +0100 Message-ID: <54E203FB.8070703@6wind.com> References: <1423791501-1555-1-git-send-email-cunming.liang@intel.com> <1423970145-31985-1-git-send-email-cunming.liang@intel.com> <1423970145-31985-5-git-send-email-cunming.liang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: Cunming Liang , dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1423970145-31985-5-git-send-email-cunming.liang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi, On 02/15/2015 04:15 AM, Cunming Liang wrote: > The problem is that strnlen() here may return invalid value with 32bit = icc. > (actually it returns it=E2=80=99s second parameter,e.g: sysconf(_SC_ARG= _MAX)). > It starts to manifest hwen max_len parameter is > 2M and using icc =E2=80= =93m32 =E2=80=93O2 (or above). >=20 > Suggested-by: Konstantin Ananyev > Signed-off-by: Cunming Liang Sorry but I don't think using strnlen() is appropriate here. See http://dpdk.org/ml/archives/dev/2015-February/013309.html Regards, Olivier