linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iio: adis16400: Set timestamp as the last element in
@ 2014-01-24 11:24 Marcus Folkesson
  2014-01-24 11:24 ` [PATCH] iio: adis16400: Set timestamp as the last element in chan_spec Marcus Folkesson
  0 siblings, 1 reply; 4+ messages in thread
From: Marcus Folkesson @ 2014-01-24 11:24 UTC (permalink / raw)
  To: Jonathan Cameron, Lars-Peter Clausen, Marcus Folkesson,
	Sachin Kamat
  Cc: linux-iio, linux-kernel

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-08 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-24 11:24 iio: adis16400: Set timestamp as the last element in Marcus Folkesson
2014-01-24 11:24 ` [PATCH] iio: adis16400: Set timestamp as the last element in chan_spec Marcus Folkesson
2014-01-24 13:46   ` Lars-Peter Clausen
2014-02-08 11:25     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).