]> git.ipfire.org Git - thirdparty/samba.git/commit
tdbtorture: Fix CID 1034815,1034816: protect from out-of-bounds access
authorShachar Sharon <ssharon@redhat.com>
Mon, 8 Sep 2025 05:19:23 +0000 (08:19 +0300)
committerAnoop C S <anoopcs@samba.org>
Thu, 11 Sep 2025 19:06:16 +0000 (19:06 +0000)
commit51a1f3666e827f4934ea158850b33c88efacbc2c
treea3da2e143492ab797726e664dbd6bd517aabe879
parentf4af0960a6e67319dba00da5e21c7ae95d719d64
tdbtorture: Fix CID 1034815,1034816: protect from out-of-bounds access

A user may provide a non-valid input value for 'num_procs' (negative).
Avoid potential out-of-bound access by forcing 'unsigned int' value
(Coverity: OVERRUN).

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Thu Sep 11 19:06:16 UTC 2025 on atb-devel-224
lib/tdb/tools/tdbtorture.c