[SCM] Samba Shared Repository - branch master updated

Martin Schwenke martins at samba.org
Wed Apr 22 01:49:02 UTC 2020


The branch, master has been updated
       via  b7fb6100b4c util: Fix signed/unsigned integer comparison
      from  1ebec7056bd s3: smbd: Refuse open in create_file_unixpath() with only SEC_FLAG_SYSTEM_SECURITY set.

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


- Log -----------------------------------------------------------------
commit b7fb6100b4c5697078caef2679dd3219c9f93b2a
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Mar 17 16:05:20 2020 +1100

    util: Fix signed/unsigned integer comparison
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    
    Autobuild-User(master): Martin Schwenke <martins at samba.org>
    Autobuild-Date(master): Wed Apr 22 01:48:03 UTC 2020 on sn-devel-184

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

Summary of changes:
 lib/util/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/lib/util/debug.c b/lib/util/debug.c
index d7449c5c690..0b203cd45a3 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -189,7 +189,7 @@ static int debug_level_to_priority(int level)
 	};
 	int priority;
 
-	if( level >= ARRAY_SIZE(priority_map) || level < 0)
+	if (level < 0 || (size_t)level >= ARRAY_SIZE(priority_map))
 		priority = LOG_DEBUG;
 	else
 		priority = priority_map[level];


-- 
Samba Shared Repository



More information about the samba-cvs mailing list