lkml.org 
[lkml]   [2014]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectiio: adis16400: Set timestamp as the last element in
Date
Hi,

This patch make sure that the timestamp element is the last element
in the iio_chan_spec.
The index values for the timestamp was hardcoded and
in conflict with other elements (at least on adis16448).

This is a problem in iio_compute_scan_bytes(). The function is
searching for the first element with the timestamp index.
If the found element has a lesser number of storage bits, this
is a potential buffer overflow issue.




\
 
 \ /
  Last update: 2014-01-24 12:41    [W:0.051 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site