[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Fri Jul 1 08:13:02 UTC 2022

The branch, master has been updated
       via  013b74e3246 s4:torture: check return of ndr_pull_init_blob() via torture_assert()
      from  9080cd30d51 s3:printing: Do not clear the printer-list.tdb


- Log -----------------------------------------------------------------
commit 013b74e32460d1ef202f21ab93142921a9fee21f
Author: Pavel Filipenský <pfilipen at redhat.com>
Date:   Tue Jun 28 10:52:13 2022 +0200

    s4:torture: check return of ndr_pull_init_blob() via torture_assert()
    Reported by covscan.
    Signed-off-by: Pavel Filipenský <pfilipen at redhat.com>
    Reviewed-by: Andrew Bartlett <abartlet at samba.org>
    Reviewed-by: Andreas Schneider <asn at samba.org>
    Autobuild-User(master): Andreas Schneider <asn at cryptomilk.org>
    Autobuild-Date(master): Fri Jul  1 08:12:49 UTC 2022 on sn-devel-184


Summary of changes:
 source4/torture/ndr/string.c | 1 +
 1 file changed, 1 insertion(+)

Changeset truncated at 500 lines:

diff --git a/source4/torture/ndr/string.c b/source4/torture/ndr/string.c
index 8c949455acf..5422a90e947 100644
--- a/source4/torture/ndr/string.c
+++ b/source4/torture/ndr/string.c
@@ -95,6 +95,7 @@ test_ndr_pull_string (struct torture_context *tctx, const char *string,
 	blob = data_blob_string_const(string);
 	ndr = ndr_pull_init_blob(&blob, mem_ctx);
+	torture_assert(mem_ctx, ndr, "ndr init failed");
 	ndr_set_flags (&ndr->flags, flags);
 	err = ndr_pull_string (ndr, NDR_SCALARS, &result);

Samba Shared Repository

More information about the samba-cvs mailing list