Task #91490 - added.err

back to task #91490
download
Error: GCC_ANALYZER_WARNING (CWE-404):
libsolv-0.7.35/src/pool.c:337:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libsolv-0.7.35/src/pool.c:331:6: branch_false: following ‘false’ branch (when ‘pool’ is non-NULL)...
libsolv-0.7.35/src/pool.c:333:3: branch_false: ...to here
libsolv-0.7.35/src/pool.c:333:3: acquire_resource: ‘va_start’ called here
libsolv-0.7.35/src/pool.c:334:6: branch_true: following ‘true’ branch...
libsolv-0.7.35/src/pool.c:336:7: branch_true: ...to here
libsolv-0.7.35/src/pool.c:337:22: throw: if ‘solv_malloc’ throws an exception...
libsolv-0.7.35/src/pool.c:337:22: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  335|       {
#  336|         pool->errstra = 1024;
#  337|->       pool->errstr = solv_malloc(pool->errstra);
#  338|       }
#  339|     if (!*format)

Error: GCC_ANALYZER_WARNING (CWE-688):
libsolv-0.7.35/src/pool.c:531:7: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libsolv-0.7.35/src/pool.c:521:1: enter_function: entry to ‘pool_tmpjoin’
libsolv-0.7.35/src/pool.c:525:3: branch_true: following ‘true’ branch (when ‘str1’ is non-NULL)...
libsolv-0.7.35/src/pool.c:525:15: branch_true: ...to here
libsolv-0.7.35/src/pool.c:526:3: branch_false: following ‘false’ branch (when ‘str2’ is NULL)...
libsolv-0.7.35/src/pool.c:527:3: branch_false: ...to here
libsolv-0.7.35/src/pool.c:527:3: branch_false: following ‘false’ branch (when ‘str3’ is NULL)...
libsolv-0.7.35/src/pool.c:528:38: branch_false: ...to here
libsolv-0.7.35/src/pool.c:528:13: call_function: calling ‘pool_alloctmpspace’ from ‘pool_tmpjoin’
libsolv-0.7.35/src/pool.c:528:13: return_function: returning to ‘pool_tmpjoin’ from ‘pool_alloctmpspace’
libsolv-0.7.35/src/pool.c:529:6: branch_true: following ‘true’ branch (when ‘l1 != 0’)...
libsolv-0.7.35/src/pool.c:531:7: branch_true: ...to here
libsolv-0.7.35/src/pool.c:531:7: danger: argument 1 (‘pool_alloctmpspace(pool,  l1 + l2 + l3 + 1)’) NULL where non-null expected
#  529|     if (l1)
#  530|       {
#  531|->       strcpy(s, str1);
#  532|         s += l1;
#  533|       }

Error: GCC_ANALYZER_WARNING (CWE-688):
libsolv-0.7.35/src/pool.c:536:7: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
libsolv-0.7.35/src/pool.c:521:1: enter_function: entry to ‘pool_tmpjoin’
libsolv-0.7.35/src/pool.c:525:3: branch_false: following ‘false’ branch (when ‘str1’ is NULL)...
libsolv-0.7.35/src/pool.c:526:3: branch_false: ...to here
libsolv-0.7.35/src/pool.c:526:3: branch_true: following ‘true’ branch (when ‘str2’ is non-NULL)...
libsolv-0.7.35/src/pool.c:526:15: branch_true: ...to here
libsolv-0.7.35/src/pool.c:527:3: branch_false: following ‘false’ branch (when ‘str3’ is NULL)...
libsolv-0.7.35/src/pool.c:528:38: branch_false: ...to here
libsolv-0.7.35/src/pool.c:528:13: call_function: calling ‘pool_alloctmpspace’ from ‘pool_tmpjoin’
libsolv-0.7.35/src/pool.c:528:13: return_function: returning to ‘pool_tmpjoin’ from ‘pool_alloctmpspace’
libsolv-0.7.35/src/pool.c:529:6: branch_false: following ‘false’ branch (when ‘l1 == 0’)...
libsolv-0.7.35/src/pool.c:534:6: branch_false: ...to here
libsolv-0.7.35/src/pool.c:534:6: branch_true: following ‘true’ branch (when ‘l2 != 0’)...
libsolv-0.7.35/src/pool.c:536:7: branch_true: ...to here
libsolv-0.7.35/src/pool.c:536:7: danger: argument 1 (‘s’) NULL where non-null expected
#  534|     if (l2)
#  535|       {
#  536|->       strcpy(s, str2);
#  537|         s += l2;
#  538|       }

Error: GCC_ANALYZER_WARNING (CWE-688):
libsolv-0.7.35/src/pool.c:566:9: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
libsolv-0.7.35/src/pool.c:549:1: enter_function: entry to ‘pool_tmpappend’
libsolv-0.7.35/src/pool.c:554:3: branch_true: following ‘true’ branch (when ‘str1’ is non-NULL)...
libsolv-0.7.35/src/pool.c:554:15: branch_true: ...to here
libsolv-0.7.35/src/pool.c:555:3: branch_false: following ‘false’ branch (when ‘str2’ is NULL)...
libsolv-0.7.35/src/pool.c:556:3: branch_false: ...to here
libsolv-0.7.35/src/pool.c:556:3: branch_false: following ‘false’ branch (when ‘str3’ is NULL)...
libsolv-0.7.35/src/pool.c:557:45: branch_false: ...to here
libsolv-0.7.35/src/pool.c:557:9: call_function: calling ‘pool_alloctmpspace_free’ from ‘pool_tmpappend’
libsolv-0.7.35/src/pool.c:557:9: return_function: returning to ‘pool_tmpappend’ from ‘pool_alloctmpspace_free’
libsolv-0.7.35/src/pool.c:558:6: branch_false: following ‘false’ branch...
libsolv-0.7.35/src/pool.c:561:11: branch_false: ...to here
libsolv-0.7.35/src/pool.c:561:11: call_function: calling ‘pool_alloctmpspace’ from ‘pool_tmpappend’
libsolv-0.7.35/src/pool.c:561:11: return_function: returning to ‘pool_tmpappend’ from ‘pool_alloctmpspace’
libsolv-0.7.35/src/pool.c:563:6: branch_true: following ‘true’ branch (when ‘l1 != 0’)...
libsolv-0.7.35/src/pool.c:565:10: branch_true: ...to here
libsolv-0.7.35/src/pool.c:565:10: branch_true: following ‘true’ branch (when ‘str1 != str’)...
libsolv-0.7.35/src/pool.c:566:9: branch_true: ...to here
libsolv-0.7.35/src/pool.c:566:9: danger: argument 1 (‘str’) NULL where non-null expected
#  564|       {
#  565|         if (s != str1)
#  566|->         strcpy(s, str1);
#  567|         s += l1;
#  568|       }

Error: GCC_ANALYZER_WARNING (CWE-688):
libsolv-0.7.35/src/pool.c:571:7: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
libsolv-0.7.35/src/pool.c:549:1: enter_function: entry to ‘pool_tmpappend’
libsolv-0.7.35/src/pool.c:554:3: branch_false: following ‘false’ branch (when ‘str1’ is NULL)...
libsolv-0.7.35/src/pool.c:555:3: branch_false: ...to here
libsolv-0.7.35/src/pool.c:555:3: branch_true: following ‘true’ branch (when ‘str2’ is non-NULL)...
libsolv-0.7.35/src/pool.c:555:15: branch_true: ...to here
libsolv-0.7.35/src/pool.c:556:3: branch_false: following ‘false’ branch (when ‘str3’ is NULL)...
libsolv-0.7.35/src/pool.c:557:45: branch_false: ...to here
libsolv-0.7.35/src/pool.c:557:9: call_function: calling ‘pool_alloctmpspace_free’ from ‘pool_tmpappend’
libsolv-0.7.35/src/pool.c:557:9: return_function: returning to ‘pool_tmpappend’ from ‘pool_alloctmpspace_free’
libsolv-0.7.35/src/pool.c:558:6: branch_false: following ‘false’ branch...
libsolv-0.7.35/src/pool.c:561:11: branch_false: ...to here
libsolv-0.7.35/src/pool.c:561:11: call_function: calling ‘pool_alloctmpspace’ from ‘pool_tmpappend’
libsolv-0.7.35/src/pool.c:561:11: return_function: returning to ‘pool_tmpappend’ from ‘pool_alloctmpspace’
libsolv-0.7.35/src/pool.c:563:6: branch_false: following ‘false’ branch (when ‘l1 == 0’)...
libsolv-0.7.35/src/pool.c:569:6: branch_false: ...to here
libsolv-0.7.35/src/pool.c:569:6: branch_true: following ‘true’ branch (when ‘l2 != 0’)...
libsolv-0.7.35/src/pool.c:571:7: branch_true: ...to here
libsolv-0.7.35/src/pool.c:571:7: danger: argument 1 (‘s’) NULL where non-null expected
#  569|     if (l2)
#  570|       {
#  571|->       strcpy(s, str2);
#  572|         s += l2;
#  573|       }