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
iwdg_stm32.c drivers/watchdog: stm32: move driver to dts based configuration 2019-02-01 19:16:59 -05:00
iwdg_stm32.h
Kconfig
Kconfig.cmsdk_apb
Kconfig.esp32
Kconfig.mcux_wdog
Kconfig.nrfx
Kconfig.qmsi
Kconfig.sam
Kconfig.sam0
Kconfig.stm32 kconfig: Remove redundant 'default n' properties 2019-02-27 09:25:22 +01:00
wdog_cmsdk_apb.c
wdt_esp32.c drivers: watchdog: remove deprecated apis 2019-02-01 10:37:49 -06:00
wdt_mcux_wdog.c
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
wdt_sam0.c