The branch, master has been updated via f749330ddab lib: Fix CID 1620428: Memory - illegal accesses (OVERRUN) from 7d255e5c233 lib/addns: match additional names in a non case insensitive way
https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit f749330ddaba04cdae20570a9e842327715f3594 Author: Volker Lendecke <v...@samba.org> Date: Sun Sep 29 08:13:04 2024 +0200 lib: Fix CID 1620428: Memory - illegal accesses (OVERRUN) Beginner's mistake, sorry. Signed-off-by: Volker Lendecke <v...@samba.org> Reviewed-by: Martin Schwenke <mar...@meltin.net> Autobuild-User(master): Martin Schwenke <mart...@samba.org> Autobuild-Date(master): Sun Sep 29 11:49:13 UTC 2024 on atb-devel-224 ----------------------------------------------------------------------- Summary of changes: libcli/smb/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changeset truncated at 500 lines: diff --git a/libcli/smb/util.c b/libcli/smb/util.c index a864a1078cd..473b479a2ab 100644 --- a/libcli/smb/util.c +++ b/libcli/smb/util.c @@ -176,7 +176,7 @@ static mode_t unix_filetypes[] = mode_t wire_filetype_to_unix(uint32_t wire_type) { - if (wire_type > ARRAY_SIZE(unix_filetypes)) { + if (wire_type >= ARRAY_SIZE(unix_filetypes)) { return (mode_t)0; } return unix_filetypes[wire_type]; -- Samba Shared Repository