Re: [PATCH][next] hfsplus: Fix out-of-bounds warnings in __hfsplus_setxattr

2021-03-31 Thread Gustavo A. R. Silva
On 3/30/21 23:53, Matthew Wilcox wrote: > On Tue, Mar 30, 2021 at 09:43:20PM -0700, Andrew Morton wrote: >> On Tue, 30 Mar 2021 09:52:26 -0500 "Gustavo A. R. Silva" >> wrote: >> >>> Fix the following out-of-bounds warnings by enclosing >>> structure members file and finder into new struct info

Re: [PATCH][next] hfsplus: Fix out-of-bounds warnings in __hfsplus_setxattr

2021-03-30 Thread Matthew Wilcox
On Tue, Mar 30, 2021 at 09:43:20PM -0700, Andrew Morton wrote: > On Tue, 30 Mar 2021 09:52:26 -0500 "Gustavo A. R. Silva" > wrote: > > > Fix the following out-of-bounds warnings by enclosing > > structure members file and finder into new struct info: > > > > fs/hfsplus/xattr.c:300:5: warning: '

Re: [PATCH][next] hfsplus: Fix out-of-bounds warnings in __hfsplus_setxattr

2021-03-30 Thread Andrew Morton
On Tue, 30 Mar 2021 09:52:26 -0500 "Gustavo A. R. Silva" wrote: > Fix the following out-of-bounds warnings by enclosing > structure members file and finder into new struct info: > > fs/hfsplus/xattr.c:300:5: warning: 'memcpy' offset [65, 80] from the object > at 'entry' is out of the bounds of

[PATCH][next] hfsplus: Fix out-of-bounds warnings in __hfsplus_setxattr

2021-03-30 Thread Gustavo A. R. Silva
Fix the following out-of-bounds warnings by enclosing structure members file and finder into new struct info: fs/hfsplus/xattr.c:300:5: warning: 'memcpy' offset [65, 80] from the object at 'entry' is out of the bounds of referenced subobject 'user_info' with type 'struct DInfo' at offset 48 [-Wa