# libtalloc-2.4.4-4.fc45 - findings not occurring in libtalloc-2.4.4-4.fc45

## List of Findings

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/os2_delete.c:114:14: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘opendir("test.dir")’ where non-null expected
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/os2_delete.c:95:5: enter_function: entry to ‘test_readdir_os2_delete’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/os2_delete.c:104:9: call_function: calling ‘create_files’ from ‘test_readdir_os2_delete’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/os2_delete.c:104:9: return_function: returning to ‘test_readdir_os2_delete’ from ‘create_files’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/os2_delete.c:109:12: branch_false: following ‘false’ branch...
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/os2_delete.c:111:13: branch_false: ...to here
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/os2_delete.c:111:13: acquire_memory: this call could return NULL
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/os2_delete.c:114:14: danger: argument 1 (‘opendir("test.dir")’) from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
    #  112|
    #  113|   	/* skip past . and .. */
    #  114|-> 	de = readdir(d);
    #  115|   	strcmp(de->d_name, ".") == 0 || FAILED("match .");
    #  116|   	de = readdir(d);

    Error: CPPCHECK_WARNING (CWE-476): [#def2]
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: x
    #  170|   	x = strdup("bla");
    #  171|
    #  172|-> 	cmp = strcmp("bla", x);
    #  173|   	if (cmp != 0) {
    #  174|   		printf("failure: strdup [\nfailed: expected \"bla\", got \"%s\"\n]\n",

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:172:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:170:13: acquire_memory: this call could return NULL
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:172:15: danger: argument 2 (‘x’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
    #  170|   	x = strdup("bla");
    #  171|
    #  172|-> 	cmp = strcmp("bla", x);
    #  173|   	if (cmp != 0) {
    #  174|   		printf("failure: strdup [\nfailed: expected \"bla\", got \"%s\"\n]\n",

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def4]
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:189:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1174:6: enter_function: entry to ‘torture_local_replace’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1178:16: call_function: calling ‘test_strlcpy’ from ‘torture_local_replace’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1178:16: return_function: returning to ‘torture_local_replace’ from ‘test_strlcpy’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1222:16: call_function: calling ‘test_closefrom’ from ‘torture_local_replace’
    #  187|   	setlinebuf(stdout);
    #  188|   	printf("success: setlinebuf\n");
    #  189|-> 	return true;
    #  190|   }
    #  191|

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:271:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘x’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:270:13: acquire_memory: this call could return NULL
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:271:15: danger: ‘x’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
    #  269|   	printf("test: strndup\n");
    #  270|   	x = strndup("bla", 0);
    #  271|-> 	cmp = strcmp(x, "");
    #  272|   	free(x);
    #  273|   	if (cmp != 0) {

    Error: GCC_ANALYZER_WARNING (CWE-688): [#def6]
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:279:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘x’ where non-null expected
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:270:13: acquire_memory: this call could return NULL
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:273:12: branch_false: following ‘false’ branch...
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:278:13: branch_false: ...to here
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:278:13: acquire_memory: this call could return NULL
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:279:15: danger: argument 1 (‘x’) from [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
    #  277|
    #  278|   	x = strndup("bla", 2);
    #  279|-> 	cmp = strcmp(x, "bl");
    #  280|   	free(x);
    #  281|   	if (cmp != 0) {

    Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1131:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1102:19: branch_true: following ‘true’ branch (when ‘i != 100’)...
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1103:22: branch_true: ...to here
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1103:22: acquire_resource: opened here
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1104:20: branch_false: following ‘false’ branch (when ‘fd != -1’)...
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1112:20: branch_false: ...to here
    libtalloc-2.4.4-build/talloc-2.4.4/lib/replace/tests/testsuite.c:1131:1: danger: ‘fd’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
    # 1129|
    # 1130|   	return true;
    # 1131|-> }
    # 1132|
    # 1133|   static bool test_array_del_element(void)

    Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.c:764:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tc’
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.c:2707:16: enter_function: entry to ‘talloc_vasprintf_append_buffer’
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.c:2712:24: call_function: calling ‘talloc_vasprintf’ from ‘talloc_vasprintf_append_buffer’
    #  762|   		parent = talloc_chunk_from_ptr(context);
    #  763|
    #  764|-> 		if (parent->limit != NULL) {
    #  765|   			limit = parent->limit;
    #  766|   		}

    Error: CPPCHECK_WARNING (CWE-401): [#def9]
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.c:793: error[memleak]: Memory leak: ptr
    #  791|
    #  792|   		talloc_memlimit_grow(limit, total_len);
    #  793|-> 	}
    #  794|
    #  795|   	tc->limit = limit;

    Error: COMPILER_WARNING (CWE-477): [#def10]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c: scope_hint: In function ‘test_autofree’
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1334:9: warning[-Wdeprecated-declarations]: ‘talloc_autofree_context’ is deprecated
    # 1334 |         p = talloc_autofree_context();
    #      |         ^
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:28: included_from: Included from here.
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1084:16: note: declared here
    # 1084 | _PUBLIC_ void *talloc_autofree_context(void) _DEPRECATED_;
    #      |                ^~~~~~~~~~~~~~~~~~~~~~~
    # 1332|   	printf("test: autofree\n# TALLOC AUTOFREE CONTEXT\n");
    # 1333|
    # 1334|-> 	p = talloc_autofree_context();
    # 1335|   	talloc_free(p);
    # 1336|

    Error: COMPILER_WARNING (CWE-477): [#def11]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1334:9: warning[-Wdeprecated-declarations]: ‘talloc_autofree_context’ is deprecated
    # 1332|   	printf("test: autofree\n# TALLOC AUTOFREE CONTEXT\n");
    # 1333|
    # 1334|-> 	p = talloc_autofree_context();
    # 1335|   	talloc_free(p);
    # 1336|

    Error: COMPILER_WARNING (CWE-477): [#def12]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1337:9: warning[-Wdeprecated-declarations]: ‘talloc_autofree_context’ is deprecated
    # 1337 |         p = talloc_autofree_context();
    #      |         ^
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1084:16: note: declared here
    # 1084 | _PUBLIC_ void *talloc_autofree_context(void) _DEPRECATED_;
    #      |                ^~~~~~~~~~~~~~~~~~~~~~~
    # 1335|   	talloc_free(p);
    # 1336|
    # 1337|-> 	p = talloc_autofree_context();
    # 1338|   	talloc_free(p);
    # 1339|

    Error: COMPILER_WARNING (CWE-477): [#def13]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1337:9: warning[-Wdeprecated-declarations]: ‘talloc_autofree_context’ is deprecated
    # 1335|   	talloc_free(p);
    # 1336|
    # 1337|-> 	p = talloc_autofree_context();
    # 1338|   	talloc_free(p);
    # 1339|

    Error: COMPILER_WARNING (CWE-477): [#def14]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c: scope_hint: In function ‘test_memlimit’
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1680:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1680 |         torture_assert("memlimit", talloc_set_memlimit(l1, 2048) == 0,
    #      |         ^~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1678|
    # 1679|   	printf("==== talloc_set_memlimit(l1, 2048)\n");
    # 1680|-> 	torture_assert("memlimit", talloc_set_memlimit(l1, 2048) == 0,
    # 1681|   		"failed: setting memlimit should never fail\n");
    # 1682|

    Error: COMPILER_WARNING (CWE-477): [#def15]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1680:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1678|
    # 1679|   	printf("==== talloc_set_memlimit(l1, 2048)\n");
    # 1680|-> 	torture_assert("memlimit", talloc_set_memlimit(l1, 2048) == 0,
    # 1681|   		"failed: setting memlimit should never fail\n");
    # 1682|

    Error: COMPILER_WARNING (CWE-477): [#def16]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1740:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1740 |         torture_assert("memlimit", talloc_set_memlimit(l3, 1024) == 0,
    #      |         ^~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1738|
    # 1739|   	printf("==== talloc_set_memlimit(l3, 1024)\n");
    # 1740|-> 	torture_assert("memlimit", talloc_set_memlimit(l3, 1024) == 0,
    # 1741|   		"failed: setting memlimit should never fail\n");
    # 1742|

    Error: COMPILER_WARNING (CWE-477): [#def17]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1740:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1738|
    # 1739|   	printf("==== talloc_set_memlimit(l3, 1024)\n");
    # 1740|-> 	torture_assert("memlimit", talloc_set_memlimit(l3, 1024) == 0,
    # 1741|   		"failed: setting memlimit should never fail\n");
    # 1742|

    Error: COMPILER_WARNING (CWE-477): [#def18]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1753:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1753 |         torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
    #      |         ^~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1751|
    # 1752|   	printf("==== talloc_set_memlimit(l4, 512)\n");
    # 1753|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
    # 1754|   		"failed: setting memlimit should never fail\n");
    # 1755|

    Error: COMPILER_WARNING (CWE-477): [#def19]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1753:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1751|
    # 1752|   	printf("==== talloc_set_memlimit(l4, 512)\n");
    # 1753|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
    # 1754|   		"failed: setting memlimit should never fail\n");
    # 1755|

    Error: COMPILER_WARNING (CWE-477): [#def20]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1787:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1787 |         torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
    #      |         ^~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1785|
    # 1786|   	printf("==== talloc_set_memlimit(l4, 512)\n");
    # 1787|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
    # 1788|   		"failed: setting memlimit should never fail\n");
    # 1789|

    Error: COMPILER_WARNING (CWE-477): [#def21]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1787:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1785|
    # 1786|   	printf("==== talloc_set_memlimit(l4, 512)\n");
    # 1787|-> 	torture_assert("memlimit", talloc_set_memlimit(l4, 512) == 0,
    # 1788|   		"failed: setting memlimit should never fail\n");
    # 1789|

    Error: COMPILER_WARNING (CWE-477): [#def22]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1820:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1820 |         talloc_set_memlimit(pool, 10*1024);
    #      |         ^~~~~~~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1818|
    # 1819|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
    # 1820|-> 	talloc_set_memlimit(pool, 10*1024);
    # 1821|   	for (i = 0; i < 9; i++) {
    # 1822|   		printf("==== talloc_size(pool, 1024) %i/10\n", i + 1);

    Error: COMPILER_WARNING (CWE-477): [#def23]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1820:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1818|
    # 1819|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
    # 1820|-> 	talloc_set_memlimit(pool, 10*1024);
    # 1821|   	for (i = 0; i < 9; i++) {
    # 1822|   		printf("==== talloc_size(pool, 1024) %i/10\n", i + 1);

    Error: COMPILER_WARNING (CWE-477): [#def24]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1873:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1873 |         talloc_set_memlimit(pool, 11*1024);
    #      |         ^~~~~~~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1871|   	/* Increase the memlimit */
    # 1872|   	printf("==== talloc_set_memlimit(pool, 11*1024)\n");
    # 1873|-> 	talloc_set_memlimit(pool, 11*1024);
    # 1874|
    # 1875|   	/* The final realloc should still fail

    Error: COMPILER_WARNING (CWE-477): [#def25]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1873:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1871|   	/* Increase the memlimit */
    # 1872|   	printf("==== talloc_set_memlimit(pool, 11*1024)\n");
    # 1873|-> 	talloc_set_memlimit(pool, 11*1024);
    # 1874|
    # 1875|   	/* The final realloc should still fail

    Error: COMPILER_WARNING (CWE-477): [#def26]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1885:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1885 |         talloc_set_memlimit(pool, 21*1024);
    #      |         ^~~~~~~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1883|
    # 1884|   	printf("==== talloc_set_memlimit(pool, 21*1024)\n");
    # 1885|-> 	talloc_set_memlimit(pool, 21*1024);
    # 1886|
    # 1887|   	/* There's now sufficient space to move the chunk out of the pool */

    Error: COMPILER_WARNING (CWE-477): [#def27]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1885:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1883|
    # 1884|   	printf("==== talloc_set_memlimit(pool, 21*1024)\n");
    # 1885|-> 	talloc_set_memlimit(pool, 21*1024);
    # 1886|
    # 1887|   	/* There's now sufficient space to move the chunk out of the pool */

    Error: COMPILER_WARNING (CWE-477): [#def28]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1923:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1923 |         talloc_set_memlimit(pool, 1024);
    #      |         ^~~~~~~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1921|
    # 1922|   	printf("==== talloc_set_memlimit(pool, 1024)\n");
    # 1923|-> 	talloc_set_memlimit(pool, 1024);
    # 1924|
    # 1925|   	/* We should still be able to allocate up to the pool limit

    Error: COMPILER_WARNING (CWE-477): [#def29]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1923:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1921|
    # 1922|   	printf("==== talloc_set_memlimit(pool, 1024)\n");
    # 1923|-> 	talloc_set_memlimit(pool, 1024);
    # 1924|
    # 1925|   	/* We should still be able to allocate up to the pool limit

    Error: COMPILER_WARNING (CWE-477): [#def30]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1944:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1944 |         talloc_set_memlimit(pool, 10*1024);
    #      |         ^~~~~~~~~~~~~~~~~~~
    libtalloc-2.4.4-build/talloc-2.4.4/talloc.h:1984:14: note: declared here
    # 1984 | _PUBLIC_ int talloc_set_memlimit(const void *ctx, size_t max_size) _DEPRECATED_;
    #      |              ^~~~~~~~~~~~~~~~~~~
    # 1942|
    # 1943|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
    # 1944|-> 	talloc_set_memlimit(pool, 10*1024);
    # 1945|
    # 1946|   	printf("==== talloc_size(pool, 1024)\n");

    Error: COMPILER_WARNING (CWE-477): [#def31]
    libtalloc-2.4.4-build/talloc-2.4.4/testsuite.c:1944:9: warning[-Wdeprecated-declarations]: ‘talloc_set_memlimit’ is deprecated
    # 1942|
    # 1943|   	printf("==== talloc_set_memlimit(pool, 10*1024)\n");
    # 1944|-> 	talloc_set_memlimit(pool, 10*1024);
    # 1945|
    # 1946|   	printf("==== talloc_size(pool, 1024)\n");

## Scan Properties

analyzer-version-clippy | 1.97.1
analyzer-version-cppcheck | 2.21.1
analyzer-version-gcc | 16.1.1
analyzer-version-gcc-analyzer | 16.1.1
analyzer-version-shellcheck | 0.11.0
analyzer-version-unicontrol | 0.0.2
diffbase-analyzer-version-clippy | 1.97.1
diffbase-analyzer-version-cppcheck | 2.21.1
diffbase-analyzer-version-gcc | 16.1.1
diffbase-analyzer-version-gcc-analyzer | 16.1.1
diffbase-analyzer-version-shellcheck | 0.11.0
diffbase-analyzer-version-unicontrol | 0.0.2
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code | 0
diffbase-host | ip-172-16-1-200.us-west-2.compute.internal
diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-config | fedora-rawhide-x86_64
diffbase-project-name | libtalloc-2.4.4-4.fc45
diffbase-store-results-to | /tmp/tmpb8cdhiyy/libtalloc-2.4.4-4.fc45.tar.xz
diffbase-time-created | 2026-08-03 17:56:25
diffbase-time-finished | 2026-08-03 17:58:05
diffbase-tool | csmock
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpb8cdhiyy/libtalloc-2.4.4-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpb8cdhiyy/libtalloc-2.4.4-4.fc45.src.rpm'
diffbase-tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol
exit-code | 0
host | ip-172-16-1-200.us-west-2.compute.internal
known-false-positives | /usr/share/csmock/known-false-positives.js
known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-config | fedora-rawhide-x86_64
project-name | libtalloc-2.4.4-4.fc45
store-results-to | /tmp/tmpb8cdhiyy/libtalloc-2.4.4-4.fc45.tar.xz
time-created | 2026-08-03 17:56:25
time-finished | 2026-08-03 17:58:05
tool | csmock
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpb8cdhiyy/libtalloc-2.4.4-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpb8cdhiyy/libtalloc-2.4.4-4.fc45.src.rpm'
tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9