The branch, master has been updated
       via  44aba9c7cab nsswitch: ensure the attrlist_t array is large enough 
for a NULL sentinel
      from  b5427f4ce54 WHATSNEW: samba-tool without ad-dc

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


- Log -----------------------------------------------------------------
commit 44aba9c7cabedf7b5a01fb9c5f3099125dd70602
Author: Ralph Boehme <s...@samba.org>
Date:   Fri Jul 9 18:20:30 2021 +0200

    nsswitch: ensure the attrlist_t array is large enough for a NULL sentinel
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=14754
    
    Signed-off-by: Ralph Boehme <s...@samba.org>
    Reviewed-by: Volker Lendecke <v...@samba.org>
    
    Autobuild-User(master): Volker Lendecke <v...@samba.org>
    Autobuild-Date(master): Mon Jul 12 15:11:42 UTC 2021 on sn-devel-184

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

Summary of changes:
 nsswitch/winbind_nss_aix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/winbind_nss_aix.c b/nsswitch/winbind_nss_aix.c
index 343809a4b34..f1f00e92a76 100644
--- a/nsswitch/winbind_nss_aix.c
+++ b/nsswitch/winbind_nss_aix.c
@@ -833,7 +833,7 @@ static attrlist_t **wb_aix_attrlist(void)
        logit("method attrlist called\n");
 
        n = sizeof(attr_list) / sizeof(struct attr_types);
-       size = (n*sizeof(attrlist_t *));
+       size = ((n + 1) * sizeof(attrlist_t *));
 
        if ( (ret = malloc( size )) == NULL ) {
                errno = ENOMEM;


-- 
Samba Shared Repository

Reply via email to