[OE-core] [PATCH] nfs-utils: fix a Gcc undefined behavior

Rongqing Li rongqing.li at windriver.com
Tue Oct 21 00:10:18 UTC 2014



On 10/20/2014 06:59 PM, Burton, Ross wrote:
> On 15 October 2014 10:21,  <rongqing.li at windriver.com> wrote:
>> Calling strncpy with NULL second argument, even when the size is 0,
>> is undefined behavior, which leads to GCC to drop the check old
>> variable with NULL in following code.
>>
>> https://bugzilla.yoctoproject.org/show_bug.cgi?id=6743
>
> I've merged this into my MUT branch but we're very late for 1.7.0
> unless it's a critical fix.  We can roll this into 1.7.1 though.
>
> Ross
>

It make the nfs-server unable to start up on my test environment


-Roy

-- 
Best Reagrds,
Roy | RongQing Li



More information about the Openembedded-core mailing list