039d8ecf6a
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.cmsdk_apb | ||
Kconfig.esp32 | ||
Kconfig.mcux_wdog | ||
Kconfig.nrfx | ||
Kconfig.qmsi | ||
Kconfig.sam | ||
Kconfig.sam0 | ||
Kconfig.stm32 | ||
iwdg_stm32.c | ||
iwdg_stm32.h | ||
wdog_cmsdk_apb.c | ||
wdt_esp32.c | ||
wdt_mcux_wdog.c | ||
wdt_nrfx.c | ||
wdt_qmsi.c | ||
wdt_sam.c | ||
wdt_sam0.c |