zephyr/drivers/adc
Andrew Boie 7e5b021b56 drivers: adc: fix TOCTOU attacks
The toplevel adc_seq_table is now copied onto the stack and
the stack copy used.

The contained entries array is now copied onto an allocation
drawn from the caller's resource pool, to prevent modification
of the buffer pointers.

The return value policy here is to oops the caller if bad memory
or objects are passed in, but return an error otherwise.

Based on an original patch by Leandro Pereira, rebased and the
copy of the entries array added.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2018-05-17 15:08:54 -07:00
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig drivers: adc: Add SAM ADC driver 2017-10-10 11:56:47 -05:00
Kconfig.dw kconfig: adc: Extract platform specific configs to separate files. 2017-09-13 09:56:25 -04:00
Kconfig.mcux mcux: nxp_kinetis: Move HAS_ADC16 config to ext 2017-09-25 12:31:59 -05:00
Kconfig.qmsi kconfig: adc: Extract platform specific configs to separate files. 2017-09-13 09:56:25 -04:00
Kconfig.sam_afec drivers: adc: Add SAM ADC driver 2017-10-10 11:56:47 -05:00
Kconfig.ti_adc108s102 drivers/adc: Switch ti_adc108s102 driver to new SPI API 2018-04-04 19:02:35 +02:00
adc_dw.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
adc_dw.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
adc_handlers.c drivers: adc: fix TOCTOU attacks 2018-05-17 15:08:54 -07:00
adc_mcux_adc16.c adc: Introduce new mcux adc16 driver 2017-07-19 14:28:08 -05:00
adc_qmsi.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
adc_qmsi_ss.c drivers, net: Clean up semaphore initialization 2017-07-27 15:23:07 -04:00
adc_sam_afec.c drivers: adc: Add SAM ADC driver 2017-10-10 11:56:47 -05:00
adc_ti_adc108s102.c drivers/adc: Uneven buffers will lead to buffer overflow 2018-05-17 10:30:29 +03:00
adc_ti_adc108s102.h drivers/adc: Switch ti_adc108s102 driver to new SPI API 2018-04-04 19:02:35 +02:00