[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Tue Sep 9 09:28:02 UTC 2025


The branch, master has been updated
       via  c5c238a8791 s4:torture: Fix stack buffer overflow in test_dirlease_oplocks()
      from  83ff87f3dab ctdb: fix build against PCP 7.0.0

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c5c238a879182a2dfe528ae49f97da75e242afe7
Author: Andreas Schneider <asn at samba.org>
Date:   Tue Sep 9 09:24:47 2025 +0200

    s4:torture: Fix stack buffer overflow in test_dirlease_oplocks()
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15907
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    
    Autobuild-User(master): Volker Lendecke <vl at samba.org>
    Autobuild-Date(master): Tue Sep  9 09:27:33 UTC 2025 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/smb2/lease.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/smb2/lease.c b/source4/torture/smb2/lease.c
index de6c2dd69ad..9696ddc11da 100644
--- a/source4/torture/smb2/lease.c
+++ b/source4/torture/smb2/lease.c
@@ -1516,7 +1516,7 @@ static bool test_dirlease_oplocks(struct torture_context *tctx,
 
 	smb2_deltree(tree, dname);
 
-	for (i = 0; i < sizeof(levels); i++) {
+	for (i = 0; i < ARRAY_SIZE(levels); i++) {
 		c = (struct smb2_create) {
 			.in.oplock_level = levels[i],
 			.in.desired_access = SEC_RIGHTS_DIR_READ,


-- 
Samba Shared Repository



More information about the samba-cvs mailing list