zephyr/drivers/watchdog
Maksim Masalski 039d8ecf6a drivers: Changed return statement in function get_timeout()
According to the Coverity issue 188890 (github issue #10705)
Fix for overflowed or truncated value  count-1U used as return value.
I decided to use a saturating subtract to avoid a vulnerability.
It will always return 0 or bigger value according to the conditions.
Now if count value is 0, function will return 0, not -1 as before.

Signed-off-by: Maksim Masalski <maxxliferobot@gmail.com>
2019-03-03 10:44:06 -05:00
..
CMakeLists.txt
Kconfig
Kconfig.cmsdk_apb
Kconfig.esp32
Kconfig.mcux_wdog
Kconfig.nrfx
Kconfig.qmsi drivers: watchdog: Add dts support for QMSI based watchdog. 2018-10-14 14:16:03 -04:00
Kconfig.sam drivers: watchdog: Convert Atmel SAM driver to DTS 2018-11-16 11:19:36 -06:00
Kconfig.sam0 drivers: watchdog: wdt_sam0: Convert Atmel SAM0 driver to the new API 2018-11-19 08:40:15 -06:00
Kconfig.stm32 kconfig: Remove redundant 'default n' properties 2019-02-27 09:25:22 +01:00
iwdg_stm32.c drivers/watchdog: stm32: move driver to dts based configuration 2019-02-01 19:16:59 -05:00
iwdg_stm32.h
wdog_cmsdk_apb.c drivers: wdog: cmsdk: Convert to new DT_<COMPAT>_<INSTANCE> defines 2019-01-25 08:55:06 -06:00
wdt_esp32.c drivers: watchdog: remove deprecated apis 2019-02-01 10:37:49 -06:00
wdt_mcux_wdog.c dts_fixups: Use DT_ prefix in all defined labels not related to Kconfig 2018-11-13 10:44:42 -06:00
wdt_nrfx.c drivers: watchdog: remove deprecated apis 2019-02-01 10:37:49 -06:00
wdt_qmsi.c drivers: Changed return statement in function get_timeout() 2019-03-03 10:44:06 -05:00
wdt_sam.c drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
wdt_sam0.c drivers: watchdog: wdt_sam0: Convert Atmel SAM0 driver to the new API 2018-11-19 08:40:15 -06:00