aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorzhangyue <[email protected]>2021-11-25 19:36:10 +0800
committerJakub Kicinski <[email protected]>2021-11-26 11:29:20 -0800
commit0435a4d08032c8fba2966cebdac870e22238cacc (patch)
treefe2921e3354850085538e2516f80860a3b0134fb /lib/test_fortify/write_overflow-strncpy.c
parentbacb6c1e47691cda4a95056c21b5487fb7199fcc (diff)
net: qed: fix the array may be out of bound
If the variable 'p_bit->flags' is always 0, the loop condition is always 0. The variable 'j' may be greater than or equal to 32. At this time, the array 'p_aeu->bits[32]' may be out of bound. Signed-off-by: zhangyue <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions