lkml.org 
[lkml]   [2021]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH AUTOSEL 5.10 113/137] wireless: wext-spy: Fix out-of-bounds warning
    From
    Date
    On Tue, 2021-07-06 at 07:21 -0400, Sasha Levin wrote:
    > From: "Gustavo A. R. Silva" <gustavoars@kernel.org>
    >
    > [ Upstream commit e93bdd78406da9ed01554c51e38b2a02c8ef8025 ]
    >
    > Fix the following out-of-bounds warning:
    >
    > net/wireless/wext-spy.c:178:2: warning: 'memcpy' offset [25, 28] from the object at 'threshold' is out of the bounds of referenced subobject 'low' with type 'struct iw_quality' at offset 20 [-Warray-bounds]

    For the record: while this clearly isn't harmful, there's almost
    basically no chance that the stable kernel will ever compile warning-
    free with -Warray-bounds, so there's not much point in backporting this
    patch.

    johannes

    \
     
     \ /
      Last update: 2021-07-06 16:58    [W:4.126 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site