s3:lib: Fix possible 32-bit arithmetic overflow
authorPavel Filipenský <pfilipen@redhat.com>
Mon, 28 Feb 2022 22:33:22 +0000 (23:33 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 5 Mar 2022 08:04:28 +0000 (08:04 +0000)
commit3f977cd6f839fd904529f12ef2ee5caae88af0ab
tree9c27a2e95225352804eec3e0ff003893cd5dcb02
parentdf7efdf046504aa2392a53f8fd96de9c207f854c
s3:lib: Fix possible 32-bit arithmetic overflow

Reported by covscan.

Potentially overflowing expression "glue->gtimeout * 1000" with type "int"
(32 bits, signed) is evaluated using 32-bit arithmetic, and then used in
a context that expects an expression of type "uint64_t" (64 bits, unsigned).

Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Mar  5 08:04:28 UTC 2022 on sn-devel-184
source3/lib/tevent_glib_glue.c