The branch, master has been updated
       via  16201d54151 s3:lib: Fix CID 1497484 use-after-free.
      from  33b55227db8 s4:kdc Support for key trust authentication

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


- Log -----------------------------------------------------------------
commit 16201d541512f0f01935f2cd7c02304ca39d8350
Author: Vinit Agnihotri <vagni...@redhat.com>
Date:   Tue Jul 29 10:32:06 2025 +0530

    s3:lib: Fix CID 1497484 use-after-free.
    
    p was not set to NULL after being free'd, this can cause a
    use-after-free situation.
    
    This fixes coverity issue#1497484
    
    Signed-off-by: Vinit Agnihotri <vagni...@redhat.com>
    Reviewed-by: Guenther Deschner <g...@samba.org>
    Reviewed-by: Anoop C S <anoo...@samba.org>
    
    Autobuild-User(master): Günther Deschner <g...@samba.org>
    Autobuild-Date(master): Tue Jul 29 15:01:42 UTC 2025 on atb-devel-224

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

Summary of changes:
 source3/lib/netapi/examples/common.c | 1 +
 1 file changed, 1 insertion(+)


Changeset truncated at 500 lines:

diff --git a/source3/lib/netapi/examples/common.c 
b/source3/lib/netapi/examples/common.c
index 72d7150b4ea..3e5664424ef 100644
--- a/source3/lib/netapi/examples/common.c
+++ b/source3/lib/netapi/examples/common.c
@@ -156,6 +156,7 @@ char *netapi_read_file(const char *filename, uint32_t 
*psize)
        err = ferror(file);
        if (err != 0) {
                free(p);
+               p = NULL;
                goto fail;
        }
 


-- 
Samba Shared Repository

Reply via email to