]> git.ipfire.org Git - thirdparty/kmod.git/commit
util: check for overflow in get_backoff_delta_msec
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 29 Jun 2025 11:17:22 +0000 (13:17 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 7 Jul 2025 15:20:33 +0000 (10:20 -0500)
commit65afd0f1c6c7128a6166aed8096390c0649f5fe5
tree5390e4fbbd1833fe37b7612aec21cdba7e1bf803
parentf14f2603820e46b1946d8f96eee10c99690aea82
util: check for overflow in get_backoff_delta_msec

If a large delta is given, the multiplication might overflow.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/377
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/util.c
shared/util.h