Task #52047 - fixed.err

back to task #52047
download
Error: GCC_ANALYZER_WARNING (CWE-685):
harfbuzz-10.4.0/redhat-linux-build/../test/api/test-ot-tag.c:526:29: warning[-Wanalyzer-va-list-exhausted]: ‘expected_tags’ has no more arguments (1 consumed)
harfbuzz-10.4.0/redhat-linux-build/../test/api/test-ot-tag.c:537:1: enter_function: entry to ‘test_ot_tag_full’
harfbuzz-10.4.0/redhat-linux-build/../test/api/test-ot-tag.c:539:3: call_function: calling ‘test_tags’ from ‘test_ot_tag_full’ with 1 variadic argument
#  524|     for (i = 0; i < script_count + language_count; i++)
#  525|     {
#  526|->     hb_tag_t expected_tag = hb_tag_from_string (va_arg (expected_tags, const char *), -1);
#  527|       hb_tag_t actual_tag = i < script_count ? script_tags[i] : language_tags[i - script_count];
#  528|       g_assert_cmphex (actual_tag, ==, expected_tag);

Error: GCC_ANALYZER_WARNING (CWE-685):
harfbuzz-10.4.0/redhat-linux-build/../test/api/test-ot-tag.c:526:29: warning[-Wanalyzer-va-list-exhausted]: ‘expected_tags’ has no more arguments (2 consumed)
harfbuzz-10.4.0/redhat-linux-build/../test/api/test-ot-tag.c:537:1: enter_function: entry to ‘test_ot_tag_full’
harfbuzz-10.4.0/redhat-linux-build/../test/api/test-ot-tag.c:539:3: call_function: calling ‘test_tags’ from ‘test_ot_tag_full’ with 1 variadic argument
harfbuzz-10.4.0/redhat-linux-build/../test/api/test-ot-tag.c:539:3: return_function: returning to ‘test_ot_tag_full’ from ‘test_tags’
harfbuzz-10.4.0/redhat-linux-build/../test/api/test-ot-tag.c:540:3: call_function: calling ‘test_tags’ from ‘test_ot_tag_full’ with 2 variadic arguments
#  524|     for (i = 0; i < script_count + language_count; i++)
#  525|     {
#  526|->     hb_tag_t expected_tag = hb_tag_from_string (va_arg (expected_tags, const char *), -1);
#  527|       hb_tag_t actual_tag = i < script_count ? script_tags[i] : language_tags[i - script_count];
#  528|       g_assert_cmphex (actual_tag, ==, expected_tag);

Error: CPPCHECK_WARNING (CWE-401):
harfbuzz-10.4.0/src/hb-machinery.hh:258: error[memleak]: Memory leak: p
#  256|       Stored *p = (Stored *) hb_calloc (1, sizeof (Stored));
#  257|       if (likely (p))
#  258|->       p = new (p) Stored (data);
#  259|       return p;
#  260|     }

Error: CPPCHECK_WARNING (CWE-401):
harfbuzz-10.4.0/src/hb-machinery.hh:265: error[memleak]: Memory leak: p
#  263|       Stored *p = (Stored *) hb_calloc (1, sizeof (Stored));
#  264|       if (likely (p))
#  265|->       p = new (p) Stored ();
#  266|       return p;
#  267|     }