lkml.org 
[lkml]   [2018]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] power: generic-adc-battery: fix out of bounds write
Date
This patch set addresses two bugs in the gab_probe() function which are
there since the first commit in 3.7-rc1:

1. there is an out of bounds write access by a miscalculated destination
address for the memcpy()
2. if iio channels are already represented by default properties, they
appear as duplicates in uevent


H. Nikolaus Schaller (2):
power: generic-adc-battery: fix out-of-bounds write when copying
channel properties
power: generic-adc-battery: check for duplicate properties copied from
iio channels

drivers/power/supply/generic-adc-battery.c | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)

--
2.12.2

\
 
 \ /
  Last update: 2018-06-26 15:29    [W:0.036 / U:3.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site