| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3] tools/libs/stat: fix broken build
 On 01.10.20 18:38, Bertrand Marquis wrote: Hi Juergen,On 14 Sep 2020, at 11:58, Bertrand Marquis <bertrand.marquis@xxxxxxx> wrote: IMHO this is a real compiler error. de->d_name is an array of 256 bytes, so doing strncpy() from that to another array of 256 bytes with a length of 256 won't truncate anything. Making devBridge one byte longer would be dangerous, as this would do a strncpy with length of 257 from a source with a length of 256 bytes only. BTW, I think Andrew? has tested my patch with a recent gcc which threw the original error without my patch, and it was fine with the patch. Either your compiler (assuming you are using gcc) has gained that error or you are missing an update fixing it. Juergen 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |