harfbuzz-11.1.0-1.fc43

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-blob.c:171:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-blob.c:170:14: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-blob.c:171:7: danger: ‘data’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  169|       case HB_MEMORY_MODE_WRITABLE:
#  170|         data = malloc (sizeof (test_data));
#  171|->       memcpy ((char *) data, test_data, sizeof (test_data));
#  172|         len = sizeof (test_data);
#  173|         free_func = (hb_destroy_func_t) free_up_free;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-map.c:73:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-map.c:71:23: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-map.c:73:3: danger: ‘data’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   71|     int *data = (int *) malloc (sizeof (int));
#   72|     int *data2;
#   73|->   *data = 3123;
#   74|     hb_map_set_user_data (m, &key[0], data, free, TRUE);
#   75|     g_assert_cmpint (*((int *) hb_map_get_user_data (m, &key[0])), ==, 3123);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-map.c:78:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data2’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-map.c:75:3: branch_true: following ‘true’ branch...
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-map.c:77:19: branch_true: ...to here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-map.c:77:19: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-map.c:78:3: danger: ‘data2’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#   76|   
#   77|     data2 = (int *) malloc (sizeof (int));
#   78|->   *data2 = 6343;
#   79|     hb_map_set_user_data (m, &key[0], data2, free, FALSE);
#   80|     g_assert_cmpint (*((int *) hb_map_get_user_data (m, &key[0])), ==, 3123);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:109:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffers’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:102:27: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:106:15: branch_true: following ‘true’ branch...
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:108:27: branch_true: ...to here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:109:5: danger: ‘buffers + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  107|     {
#  108|       hb_buffer_t *buffer = hb_buffer_create ();
#  109|->     buffers[i] = buffer;
#  110|       pthread_create (&threads[i], NULL, thread_func, buffer);
#  111|     }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:110:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘threads’ where non-null expected
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:101:24: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:106:15: branch_true: following ‘true’ branch...
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:108:27: branch_true: ...to here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-multithread.c:110:5: danger: argument 1 (‘threads + (long unsigned int)i * 8’) from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  108|       hb_buffer_t *buffer = hb_buffer_create ();
#  109|       buffers[i] = buffer;
#  110|->     pthread_create (&threads[i], NULL, thread_func, buffer);
#  111|     }
#  112|   

Error: GCC_ANALYZER_WARNING (CWE-685): [#def6]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:526:29: warning[-Wanalyzer-va-list-exhausted]: ‘expected_tags’ has no more arguments (0 consumed)
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:537:1: enter_function: entry to ‘test_ot_tag_full’
harfbuzz-11.1.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-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:539:3: return_function: returning to ‘test_ot_tag_full’ from ‘test_tags’
harfbuzz-11.1.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
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:540:3: return_function: returning to ‘test_ot_tag_full’ from ‘test_tags’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:541:3: call_function: calling ‘test_tags’ from ‘test_ot_tag_full’ with 2 variadic arguments
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:541:3: return_function: returning to ‘test_ot_tag_full’ from ‘test_tags’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:542:3: call_function: calling ‘test_tags’ from ‘test_ot_tag_full’ with 0 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: GCC_ANALYZER_WARNING (CWE-415): [#def7]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:532:3: warning[-Wanalyzer-double-free]: double-‘free’ of ‘language_tags’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:512:29: acquire_memory: allocated here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:514:3: branch_false: following ‘false’ branch (when ‘script_tags’ is NULL)...
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:514:3: branch_false: ...to here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:515:3: release_memory: first ‘free’ here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:515:3: branch_false: following ‘false’ branch (when ‘language_tags’ is NULL)...
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:515:3: branch_false: ...to here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:521:3: branch_true: following ‘true’ branch (when ‘__n1 == __n2’)...
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:522:3: branch_true: ...to here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:522:3: branch_true: following ‘true’ branch (when ‘__n1 == __n2’)...
 branch_true: ...to here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:524:15: branch_false: following ‘false’ branch...
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:531:3: branch_false: ...to here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:531:3: release_memory: first ‘free’ here
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-ot-tag.c:532:3: danger: second ‘free’ here; first ‘free’ was at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
#  530|   
#  531|     free (script_tags);
#  532|->   free (language_tags);
#  533|     va_end (expected_tags);
#  534|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:38:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘hb_objs’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:36:43: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:38:3: danger: ‘hb_objs’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   36|     hb_subset_serialize_object_t *hb_objs = calloc (15, sizeof (hb_subset_serialize_object_t));
#   37|   
#   38|->   hb_objs[0].head = &(test_gsub_data[100]);
#   39|     hb_objs[0].tail = &(test_gsub_data[105]) + 1;
#   40|     hb_objs[0].num_real_links = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:50:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:49:27: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:50:3: danger: ‘malloc(12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   48|     hb_objs[1].num_virtual_links = 0;
#   49|     hb_objs[1].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   50|->   hb_objs[1].real_links[0].width = 2;
#   51|     hb_objs[1].real_links[0].position = 2;
#   52|     hb_objs[1].real_links[0].objidx = 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:61:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:60:27: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:61:3: danger: ‘malloc(12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   59|     hb_objs[2].num_virtual_links = 0;
#   60|     hb_objs[2].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   61|->   hb_objs[2].real_links[0].width = 2;
#   62|     hb_objs[2].real_links[0].position = 6;
#   63|     hb_objs[2].real_links[0].objidx = 2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:78:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:77:27: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:78:3: danger: ‘malloc(12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   76|     hb_objs[4].num_virtual_links = 0;
#   77|     hb_objs[4].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   78|->   hb_objs[4].real_links[0].width = 2;
#   79|     hb_objs[4].real_links[0].position = 2;
#   80|     hb_objs[4].real_links[0].objidx = 4;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:95:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(2, 12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:94:27: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:95:3: danger: ‘calloc(2, 12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   93|     hb_objs[6].num_virtual_links = 0;
#   94|     hb_objs[6].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#   95|->   hb_objs[6].real_links[0].width = 2;
#   96|     hb_objs[6].real_links[0].position = 6;
#   97|     hb_objs[6].real_links[0].objidx = 5;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:108:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:107:27: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:108:3: danger: ‘malloc(12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  106|     hb_objs[7].num_virtual_links = 0;
#  107|     hb_objs[7].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  108|->   hb_objs[7].real_links[0].width = 2;
#  109|     hb_objs[7].real_links[0].position = 6;
#  110|     hb_objs[7].real_links[0].objidx = 7;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:118:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(2, 12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:117:27: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:118:3: danger: ‘calloc(2, 12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  116|     hb_objs[8].num_virtual_links = 0;
#  117|     hb_objs[8].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#  118|->   hb_objs[8].real_links[0].width = 2;
#  119|     hb_objs[8].real_links[0].position = 2;
#  120|     hb_objs[8].real_links[0].objidx = 3;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:138:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:137:28: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:138:3: danger: ‘malloc(12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  136|     hb_objs[10].num_virtual_links = 0;
#  137|     hb_objs[10].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  138|->   hb_objs[10].real_links[0].width = 2;
#  139|     hb_objs[10].real_links[0].position = 6;
#  140|     hb_objs[10].real_links[0].objidx = 10;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:155:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:154:28: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:155:3: danger: ‘malloc(12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  153|     hb_objs[12].num_virtual_links = 0;
#  154|     hb_objs[12].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  155|->   hb_objs[12].real_links[0].width = 2;
#  156|     hb_objs[12].real_links[0].position = 0;
#  157|     hb_objs[12].real_links[0].objidx = 12;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:165:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:164:28: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:165:3: danger: ‘malloc(12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  163|     hb_objs[13].num_virtual_links = 0;
#  164|     hb_objs[13].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  165|->   hb_objs[13].real_links[0].width = 2;
#  166|     hb_objs[13].real_links[0].position = 6;
#  167|     hb_objs[13].real_links[0].objidx = 13;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:175:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(3, 12)’
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:174:28: acquire_memory: this call could return NULL
harfbuzz-11.1.0/redhat-linux-build/../test/api/test-subset-repacker.c:175:3: danger: ‘calloc(3, 12)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  173|     hb_objs[14].num_virtual_links = 0;
#  174|     hb_objs[14].real_links = calloc (3, sizeof (hb_subset_serialize_link_t));
#  175|->   hb_objs[14].real_links[0].width = 2;
#  176|     hb_objs[14].real_links[0].position = 8;
#  177|     hb_objs[14].real_links[0].objidx = 9;

Error: CPPCHECK_WARNING (CWE-457): [#def19]
harfbuzz-11.1.0/src/hb-algs.hh:322: error[legacyUninitvar]: Uninitialized variable: pos++->v
#  320|   	  while (pos != end)
#  321|   	  {
#  322|-> 	    v  = pos++->v;
#  323|   	    h ^= fasthash_mix(v);
#  324|   	    h *= m;

Error: CPPCHECK_WARNING (CWE-457): [#def20]
harfbuzz-11.1.0/src/hb-algs.hh:977: warning[uninitvar]: Uninitialized variable: dst
#  975|   {
#  976|     /* It's illegal to pass 0 as size to memcpy. */
#  977|->   if (unlikely (!len)) return dst;
#  978|     return memcpy (dst, src, len);
#  979|   }

Error: CPPCHECK_WARNING (CWE-457): [#def21]
harfbuzz-11.1.0/src/hb-bit-page.hh:62: warning[uninitvar]: Uninitialized variable: r
#   60|       for (unsigned int i = 0; i < ARRAY_LENGTH (v); i++)
#   61|         r.v[i] = op (v[i]);
#   62|->     return r;
#   63|     }
#   64|     template <typename Op>

Error: CPPCHECK_WARNING (CWE-457): [#def22]
harfbuzz-11.1.0/src/hb-bit-page.hh:70: warning[uninitvar]: Uninitialized variable: r
#   68|       for (unsigned int i = 0; i < ARRAY_LENGTH (v); i++)
#   69|         r.v[i] = op (v[i], o.v[i]);
#   70|->     return r;
#   71|     }
#   72|     hb_vector_size_t operator | (const hb_vector_size_t &o) const

Error: CPPCHECK_WARNING (CWE-758): [#def23]
harfbuzz-11.1.0/src/hb-iter.hh:776: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#  774|     inc (hb_type_identity<S2> s, hb_priority<1>)
#  775|       -> hb_void_t<decltype (hb_invoke (std::forward<S2> (s), hb_declval<T&> ()))>
#  776|->   { v = hb_invoke (std::forward<S2> (s), v); }
#  777|   
#  778|     void

Error: CPPCHECK_WARNING (CWE-686): [#def24]
harfbuzz-11.1.0/src/hb-map.hh:67: error[memsetClass]: Using 'memcpy' on struct that contains a 'std::string'.
#   65|         prime = o.prime;
#   66|         max_chain_length = o.max_chain_length;
#   67|->       memcpy (items, o.items, sizeof (item_t) * (mask + 1));
#   68|         return;
#   69|       }

Error: CPPCHECK_WARNING (CWE-476): [#def25]
harfbuzz-11.1.0/src/test-ot-meta.cc:56: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tags
#   54|     for (unsigned i = 0; i < count; ++i)
#   55|     {
#   56|->     hb_blob_t *entry = hb_ot_meta_reference_entry (face, tags[i]);
#   57|       printf ("%c%c%c%c, size: %u: %.*s\n",
#   58|   	    HB_UNTAG (tags[i]), hb_blob_get_length (entry),

Error: CPPCHECK_WARNING (CWE-476): [#def26]
harfbuzz-11.1.0/src/test-ot-meta.cc:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tags
#   56|       hb_blob_t *entry = hb_ot_meta_reference_entry (face, tags[i]);
#   57|       printf ("%c%c%c%c, size: %u: %.*s\n",
#   58|-> 	    HB_UNTAG (tags[i]), hb_blob_get_length (entry),
#   59|   	    (int) hb_blob_get_length (entry), hb_blob_get_data (entry, nullptr));
#   60|       hb_blob_destroy (entry);

Error: CPPCHECK_WARNING (CWE-476): [#def27]
harfbuzz-11.1.0/test/api/test-map.c:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#   71|     int *data = (int *) malloc (sizeof (int));
#   72|     int *data2;
#   73|->   *data = 3123;
#   74|     hb_map_set_user_data (m, &key[0], data, free, TRUE);
#   75|     g_assert_cmpint (*((int *) hb_map_get_user_data (m, &key[0])), ==, 3123);

Error: CPPCHECK_WARNING (CWE-476): [#def28]
harfbuzz-11.1.0/test/api/test-map.c:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data2
#   76|   
#   77|     data2 = (int *) malloc (sizeof (int));
#   78|->   *data2 = 6343;
#   79|     hb_map_set_user_data (m, &key[0], data2, free, FALSE);
#   80|     g_assert_cmpint (*((int *) hb_map_get_user_data (m, &key[0])), ==, 3123);

Error: CPPCHECK_WARNING (CWE-476): [#def29]
harfbuzz-11.1.0/test/api/test-multithread.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffers
#  107|     {
#  108|       hb_buffer_t *buffer = hb_buffer_create ();
#  109|->     buffers[i] = buffer;
#  110|       pthread_create (&threads[i], NULL, thread_func, buffer);
#  111|     }

Error: CPPCHECK_WARNING (CWE-476): [#def30]
harfbuzz-11.1.0/test/api/test-multithread.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: threads
#  116|     for (i = 0; i < num_threads; i++)
#  117|     {
#  118|->     pthread_join (threads[i], NULL);
#  119|       hb_buffer_destroy (buffers[i]);
#  120|     }

Error: CPPCHECK_WARNING (CWE-476): [#def31]
harfbuzz-11.1.0/test/api/test-multithread.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffers
#  117|     {
#  118|       pthread_join (threads[i], NULL);
#  119|->     hb_buffer_destroy (buffers[i]);
#  120|     }
#  121|   

Error: CPPCHECK_WARNING (CWE-476): [#def32]
harfbuzz-11.1.0/test/api/test-ot-color.c:221: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: _colors
#  219|     g_assert_cmpint (hb_ot_color_palette_get_colors (cpal_v0, 0, 0, &num_colors, colors), ==, 2);
#  220|     g_assert_cmpint (num_colors, ==, 2);
#  221|->   assert_color_rgba (colors, 0, 0x00, 0x00, 0x00, 0xff);
#  222|     assert_color_rgba (colors, 1, 0x66, 0xcc, 0xff, 0xff);
#  223|   

Error: CPPCHECK_WARNING (CWE-476): [#def33]
harfbuzz-11.1.0/test/api/test-paint.c:567: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stops
#  565|   
#  566|     // check that we can get stops twice
#  567|->   if (memcmp (stops, stops2, len * sizeof (hb_color_stop_t)) != 0)
#  568|     {
#  569|       free (stops);

Error: CPPCHECK_WARNING (CWE-476): [#def34]
harfbuzz-11.1.0/test/api/test-paint.c:567: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stops2
#  565|   
#  566|     // check that we can get stops twice
#  567|->   if (memcmp (stops, stops2, len * sizeof (hb_color_stop_t)) != 0)
#  568|     {
#  569|       free (stops);

Error: COMPILER_WARNING (CWE-681): [#def35]
harfbuzz-11.1.0/test/api/test-shape-plan.c: scope_hint: In function ‘test_ot_shape_plan_get_feature_tags_rtl’
harfbuzz-11.1.0/test/api/test-shape-plan.c:44:31: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘hb_buffer_add_utf8’ differ in signedness
#   44 |   hb_buffer_add_utf8 (buffer, u8"()", -1, 0, -1);
#      |                               ^~~~~~
#      |                               |
#      |                               unsigned char *
harfbuzz-11.1.0/src/hb.h:32: included_from: Included from here.
harfbuzz-11.1.0/src/hb-ot.h:31: included_from: Included from here.
harfbuzz-11.1.0/test/api/test-shape-plan.c:26: included_from: Included from here.
harfbuzz-11.1.0/src/hb-buffer.h:598:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#  598 |                     const char   *text,
#      |                     ~~~~~~~~~~~~~~^~~~
#   42|     hb_buffer_t *buffer = hb_buffer_create ();
#   43|     hb_buffer_set_segment_properties (buffer, &props);
#   44|->   hb_buffer_add_utf8 (buffer, u8"()", -1, 0, -1);
#   45|   
#   46|     hb_shape_plan_t *shape_plan = hb_shape_plan_create (face, &props, NULL, 0, NULL);

Error: COMPILER_WARNING (CWE-681): [#def36]
harfbuzz-11.1.0/test/api/test-shape-plan.c: scope_hint: In function ‘test_ot_shape_plan_get_feature_tags_ltr’
harfbuzz-11.1.0/test/api/test-shape-plan.c:93:31: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘hb_buffer_add_utf8’ differ in signedness
#   93 |   hb_buffer_add_utf8 (buffer, u8" ", -1, 0, -1);
#      |                               ^~~~~
#      |                               |
#      |                               unsigned char *
harfbuzz-11.1.0/src/hb-buffer.h:598:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#  598 |                     const char   *text,
#      |                     ~~~~~~~~~~~~~~^~~~
#   91|     hb_buffer_t *buffer = hb_buffer_create ();
#   92|     hb_buffer_set_segment_properties (buffer, &props);
#   93|->   hb_buffer_add_utf8 (buffer, u8" ", -1, 0, -1);
#   94|   
#   95|     hb_shape_plan_t *shape_plan = hb_shape_plan_create (face, &props, NULL, 0, NULL);

Error: COMPILER_WARNING (CWE-681): [#def37]
harfbuzz-11.1.0/test/api/test-shape-plan.c: scope_hint: In function ‘test_ot_shape_plan_get_feature_tags_ttb’
harfbuzz-11.1.0/test/api/test-shape-plan.c:135:31: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘hb_buffer_add_utf8’ differ in signedness
#  135 |   hb_buffer_add_utf8 (buffer, u8" ", -1, 0, -1);
#      |                               ^~~~~
#      |                               |
#      |                               unsigned char *
harfbuzz-11.1.0/src/hb-buffer.h:598:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#  598 |                     const char   *text,
#      |                     ~~~~~~~~~~~~~~^~~~
#  133|     hb_buffer_t *buffer = hb_buffer_create ();
#  134|     hb_buffer_set_segment_properties (buffer, &props);
#  135|->   hb_buffer_add_utf8 (buffer, u8" ", -1, 0, -1);
#  136|   
#  137|     hb_shape_plan_t *shape_plan = hb_shape_plan_create (face, &props, NULL, 0, NULL);

Error: COMPILER_WARNING (CWE-681): [#def38]
harfbuzz-11.1.0/test/api/test-shape-plan.c: scope_hint: In function ‘test_ot_shape_plan_get_feature_tags_userfeatures_enable’
harfbuzz-11.1.0/test/api/test-shape-plan.c:171:31: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘hb_buffer_add_utf8’ differ in signedness
#  171 |   hb_buffer_add_utf8 (buffer, u8"   ", -1, 0, -1);
#      |                               ^~~~~~~
#      |                               |
#      |                               unsigned char *
harfbuzz-11.1.0/src/hb-buffer.h:598:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#  598 |                     const char   *text,
#      |                     ~~~~~~~~~~~~~~^~~~
#  169|     hb_buffer_t *buffer = hb_buffer_create ();
#  170|     hb_buffer_set_segment_properties (buffer, &props);
#  171|->   hb_buffer_add_utf8 (buffer, u8"   ", -1, 0, -1);
#  172|   
#  173|     hb_feature_t user_features[1] = {{HB_TAG ('s', 's', '0', '1'), 1, 0, 1}};

Error: COMPILER_WARNING (CWE-681): [#def39]
harfbuzz-11.1.0/test/api/test-shape-plan.c: scope_hint: In function ‘test_ot_shape_plan_get_feature_tags_userfeatures_disable’
harfbuzz-11.1.0/test/api/test-shape-plan.c:212:31: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘hb_buffer_add_utf8’ differ in signedness
#  212 |   hb_buffer_add_utf8 (buffer, u8"   ", -1, 0, -1);
#      |                               ^~~~~~~
#      |                               |
#      |                               unsigned char *
harfbuzz-11.1.0/src/hb-buffer.h:598:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#  598 |                     const char   *text,
#      |                     ~~~~~~~~~~~~~~^~~~
#  210|     hb_buffer_t *buffer = hb_buffer_create ();
#  211|     hb_buffer_set_segment_properties (buffer, &props);
#  212|->   hb_buffer_add_utf8 (buffer, u8"   ", -1, 0, -1);
#  213|   
#  214|     hb_feature_t user_features[1] = {{HB_TAG ('k', 'e', 'r', 'n'), 0, 0, HB_FEATURE_GLOBAL_END}};

Error: COMPILER_WARNING (CWE-681): [#def40]
harfbuzz-11.1.0/test/api/test-shape-plan.c: scope_hint: In function ‘test_ot_shape_plan_get_feature_tags_userfeatures_disablepartial’
harfbuzz-11.1.0/test/api/test-shape-plan.c:253:31: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘hb_buffer_add_utf8’ differ in signedness
#  253 |   hb_buffer_add_utf8 (buffer, u8"   ", -1, 0, -1);
#      |                               ^~~~~~~
#      |                               |
#      |                               unsigned char *
harfbuzz-11.1.0/src/hb-buffer.h:598:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#  598 |                     const char   *text,
#      |                     ~~~~~~~~~~~~~~^~~~
#  251|     hb_buffer_t *buffer = hb_buffer_create ();
#  252|     hb_buffer_set_segment_properties (buffer, &props);
#  253|->   hb_buffer_add_utf8 (buffer, u8"   ", -1, 0, -1);
#  254|   
#  255|     hb_feature_t user_features[1] = {{HB_TAG ('k', 'e', 'r', 'n'), 0, 0, 1}};

Error: COMPILER_WARNING (CWE-681): [#def41]
harfbuzz-11.1.0/test/api/test-shape-plan.c: scope_hint: In function ‘test_ot_shape_plan_get_feature_tags_userfeatures_disablenondeafult’
harfbuzz-11.1.0/test/api/test-shape-plan.c:294:31: warning[-Wpointer-sign]: pointer targets in passing argument 2 of ‘hb_buffer_add_utf8’ differ in signedness
#  294 |   hb_buffer_add_utf8 (buffer, u8"   ", -1, 0, -1);
#      |                               ^~~~~~~
#      |                               |
#      |                               unsigned char *
harfbuzz-11.1.0/src/hb-buffer.h:598:35: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
#  598 |                     const char   *text,
#      |                     ~~~~~~~~~~~~~~^~~~
#  292|     hb_buffer_t *buffer = hb_buffer_create ();
#  293|     hb_buffer_set_segment_properties (buffer, &props);
#  294|->   hb_buffer_add_utf8 (buffer, u8"   ", -1, 0, -1);
#  295|   
#  296|     hb_feature_t user_features[1] = {{HB_TAG ('s', 's', '0', '1'), 0, 0, HB_FEATURE_GLOBAL_END}};

Error: CPPCHECK_WARNING (CWE-476): [#def42]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:38: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   36|     hb_subset_serialize_object_t *hb_objs = calloc (15, sizeof (hb_subset_serialize_object_t));
#   37|   
#   38|->   hb_objs[0].head = &(test_gsub_data[100]);
#   39|     hb_objs[0].tail = &(test_gsub_data[105]) + 1;
#   40|     hb_objs[0].num_real_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def43]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:39: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   37|   
#   38|     hb_objs[0].head = &(test_gsub_data[100]);
#   39|->   hb_objs[0].tail = &(test_gsub_data[105]) + 1;
#   40|     hb_objs[0].num_real_links = 0;
#   41|     hb_objs[0].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def44]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:40: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   38|     hb_objs[0].head = &(test_gsub_data[100]);
#   39|     hb_objs[0].tail = &(test_gsub_data[105]) + 1;
#   40|->   hb_objs[0].num_real_links = 0;
#   41|     hb_objs[0].num_virtual_links = 0;
#   42|     hb_objs[0].real_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def45]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:41: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   39|     hb_objs[0].tail = &(test_gsub_data[105]) + 1;
#   40|     hb_objs[0].num_real_links = 0;
#   41|->   hb_objs[0].num_virtual_links = 0;
#   42|     hb_objs[0].real_links = NULL;
#   43|     hb_objs[0].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def46]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   40|     hb_objs[0].num_real_links = 0;
#   41|     hb_objs[0].num_virtual_links = 0;
#   42|->   hb_objs[0].real_links = NULL;
#   43|     hb_objs[0].virtual_links = NULL;
#   44|   

Error: CPPCHECK_WARNING (CWE-476): [#def47]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:43: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   41|     hb_objs[0].num_virtual_links = 0;
#   42|     hb_objs[0].real_links = NULL;
#   43|->   hb_objs[0].virtual_links = NULL;
#   44|   
#   45|     hb_objs[1].head = &(test_gsub_data[94]);

Error: CPPCHECK_WARNING (CWE-476): [#def48]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:45: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   43|     hb_objs[0].virtual_links = NULL;
#   44|   
#   45|->   hb_objs[1].head = &(test_gsub_data[94]);
#   46|     hb_objs[1].tail = &(test_gsub_data[100]);
#   47|     hb_objs[1].num_real_links = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def49]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:46: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   44|   
#   45|     hb_objs[1].head = &(test_gsub_data[94]);
#   46|->   hb_objs[1].tail = &(test_gsub_data[100]);
#   47|     hb_objs[1].num_real_links = 1;
#   48|     hb_objs[1].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def50]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:47: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   45|     hb_objs[1].head = &(test_gsub_data[94]);
#   46|     hb_objs[1].tail = &(test_gsub_data[100]);
#   47|->   hb_objs[1].num_real_links = 1;
#   48|     hb_objs[1].num_virtual_links = 0;
#   49|     hb_objs[1].real_links = malloc (sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def51]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:48: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   46|     hb_objs[1].tail = &(test_gsub_data[100]);
#   47|     hb_objs[1].num_real_links = 1;
#   48|->   hb_objs[1].num_virtual_links = 0;
#   49|     hb_objs[1].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   50|     hb_objs[1].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def52]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:49: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   47|     hb_objs[1].num_real_links = 1;
#   48|     hb_objs[1].num_virtual_links = 0;
#   49|->   hb_objs[1].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   50|     hb_objs[1].real_links[0].width = 2;
#   51|     hb_objs[1].real_links[0].position = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def53]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:50: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   48|     hb_objs[1].num_virtual_links = 0;
#   49|     hb_objs[1].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   50|->   hb_objs[1].real_links[0].width = 2;
#   51|     hb_objs[1].real_links[0].position = 2;
#   52|     hb_objs[1].real_links[0].objidx = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def54]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:51: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   49|     hb_objs[1].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   50|     hb_objs[1].real_links[0].width = 2;
#   51|->   hb_objs[1].real_links[0].position = 2;
#   52|     hb_objs[1].real_links[0].objidx = 1;
#   53|     hb_objs[1].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def55]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:52: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   50|     hb_objs[1].real_links[0].width = 2;
#   51|     hb_objs[1].real_links[0].position = 2;
#   52|->   hb_objs[1].real_links[0].objidx = 1;
#   53|     hb_objs[1].virtual_links = NULL;
#   54|   

Error: CPPCHECK_WARNING (CWE-476): [#def56]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:53: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   51|     hb_objs[1].real_links[0].position = 2;
#   52|     hb_objs[1].real_links[0].objidx = 1;
#   53|->   hb_objs[1].virtual_links = NULL;
#   54|   
#   55|   

Error: CPPCHECK_WARNING (CWE-476): [#def57]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:56: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   54|   
#   55|   
#   56|->   hb_objs[2].head = &(test_gsub_data[86]);
#   57|     hb_objs[2].tail = &(test_gsub_data[94]);
#   58|     hb_objs[2].num_real_links = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def58]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:57: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   55|   
#   56|     hb_objs[2].head = &(test_gsub_data[86]);
#   57|->   hb_objs[2].tail = &(test_gsub_data[94]);
#   58|     hb_objs[2].num_real_links = 1;
#   59|     hb_objs[2].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def59]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   56|     hb_objs[2].head = &(test_gsub_data[86]);
#   57|     hb_objs[2].tail = &(test_gsub_data[94]);
#   58|->   hb_objs[2].num_real_links = 1;
#   59|     hb_objs[2].num_virtual_links = 0;
#   60|     hb_objs[2].real_links = malloc (sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def60]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:59: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   57|     hb_objs[2].tail = &(test_gsub_data[94]);
#   58|     hb_objs[2].num_real_links = 1;
#   59|->   hb_objs[2].num_virtual_links = 0;
#   60|     hb_objs[2].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   61|     hb_objs[2].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def61]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:60: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   58|     hb_objs[2].num_real_links = 1;
#   59|     hb_objs[2].num_virtual_links = 0;
#   60|->   hb_objs[2].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   61|     hb_objs[2].real_links[0].width = 2;
#   62|     hb_objs[2].real_links[0].position = 6;

Error: CPPCHECK_WARNING (CWE-476): [#def62]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:61: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   59|     hb_objs[2].num_virtual_links = 0;
#   60|     hb_objs[2].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   61|->   hb_objs[2].real_links[0].width = 2;
#   62|     hb_objs[2].real_links[0].position = 6;
#   63|     hb_objs[2].real_links[0].objidx = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def63]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:62: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   60|     hb_objs[2].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   61|     hb_objs[2].real_links[0].width = 2;
#   62|->   hb_objs[2].real_links[0].position = 6;
#   63|     hb_objs[2].real_links[0].objidx = 2;
#   64|     hb_objs[2].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def64]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:63: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   61|     hb_objs[2].real_links[0].width = 2;
#   62|     hb_objs[2].real_links[0].position = 6;
#   63|->   hb_objs[2].real_links[0].objidx = 2;
#   64|     hb_objs[2].virtual_links = NULL;
#   65|   

Error: CPPCHECK_WARNING (CWE-476): [#def65]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:64: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   62|     hb_objs[2].real_links[0].position = 6;
#   63|     hb_objs[2].real_links[0].objidx = 2;
#   64|->   hb_objs[2].virtual_links = NULL;
#   65|   
#   66|     hb_objs[3].head = &(test_gsub_data[76]);

Error: CPPCHECK_WARNING (CWE-476): [#def66]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:66: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   64|     hb_objs[2].virtual_links = NULL;
#   65|   
#   66|->   hb_objs[3].head = &(test_gsub_data[76]);
#   67|     hb_objs[3].tail = &(test_gsub_data[86]);
#   68|     hb_objs[3].num_real_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def67]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   65|   
#   66|     hb_objs[3].head = &(test_gsub_data[76]);
#   67|->   hb_objs[3].tail = &(test_gsub_data[86]);
#   68|     hb_objs[3].num_real_links = 0;
#   69|     hb_objs[3].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def68]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:68: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   66|     hb_objs[3].head = &(test_gsub_data[76]);
#   67|     hb_objs[3].tail = &(test_gsub_data[86]);
#   68|->   hb_objs[3].num_real_links = 0;
#   69|     hb_objs[3].num_virtual_links = 0;
#   70|     hb_objs[3].real_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def69]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   67|     hb_objs[3].tail = &(test_gsub_data[86]);
#   68|     hb_objs[3].num_real_links = 0;
#   69|->   hb_objs[3].num_virtual_links = 0;
#   70|     hb_objs[3].real_links = NULL;
#   71|     hb_objs[3].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def70]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   68|     hb_objs[3].num_real_links = 0;
#   69|     hb_objs[3].num_virtual_links = 0;
#   70|->   hb_objs[3].real_links = NULL;
#   71|     hb_objs[3].virtual_links = NULL;
#   72|   

Error: CPPCHECK_WARNING (CWE-476): [#def71]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:71: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   69|     hb_objs[3].num_virtual_links = 0;
#   70|     hb_objs[3].real_links = NULL;
#   71|->   hb_objs[3].virtual_links = NULL;
#   72|   
#   73|     hb_objs[4].head = &(test_gsub_data[72]);

Error: CPPCHECK_WARNING (CWE-476): [#def72]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   71|     hb_objs[3].virtual_links = NULL;
#   72|   
#   73|->   hb_objs[4].head = &(test_gsub_data[72]);
#   74|     hb_objs[4].tail = &(test_gsub_data[76]);
#   75|     hb_objs[4].num_real_links = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def73]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:74: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   72|   
#   73|     hb_objs[4].head = &(test_gsub_data[72]);
#   74|->   hb_objs[4].tail = &(test_gsub_data[76]);
#   75|     hb_objs[4].num_real_links = 1;
#   76|     hb_objs[4].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def74]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:75: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   73|     hb_objs[4].head = &(test_gsub_data[72]);
#   74|     hb_objs[4].tail = &(test_gsub_data[76]);
#   75|->   hb_objs[4].num_real_links = 1;
#   76|     hb_objs[4].num_virtual_links = 0;
#   77|     hb_objs[4].real_links = malloc (sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def75]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:76: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   74|     hb_objs[4].tail = &(test_gsub_data[76]);
#   75|     hb_objs[4].num_real_links = 1;
#   76|->   hb_objs[4].num_virtual_links = 0;
#   77|     hb_objs[4].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   78|     hb_objs[4].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def76]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:77: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   75|     hb_objs[4].num_real_links = 1;
#   76|     hb_objs[4].num_virtual_links = 0;
#   77|->   hb_objs[4].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   78|     hb_objs[4].real_links[0].width = 2;
#   79|     hb_objs[4].real_links[0].position = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def77]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   76|     hb_objs[4].num_virtual_links = 0;
#   77|     hb_objs[4].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   78|->   hb_objs[4].real_links[0].width = 2;
#   79|     hb_objs[4].real_links[0].position = 2;
#   80|     hb_objs[4].real_links[0].objidx = 4;

Error: CPPCHECK_WARNING (CWE-476): [#def78]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:79: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   77|     hb_objs[4].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#   78|     hb_objs[4].real_links[0].width = 2;
#   79|->   hb_objs[4].real_links[0].position = 2;
#   80|     hb_objs[4].real_links[0].objidx = 4;
#   81|     hb_objs[4].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def79]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:80: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   78|     hb_objs[4].real_links[0].width = 2;
#   79|     hb_objs[4].real_links[0].position = 2;
#   80|->   hb_objs[4].real_links[0].objidx = 4;
#   81|     hb_objs[4].virtual_links = NULL;
#   82|   

Error: CPPCHECK_WARNING (CWE-476): [#def80]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:81: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   79|     hb_objs[4].real_links[0].position = 2;
#   80|     hb_objs[4].real_links[0].objidx = 4;
#   81|->   hb_objs[4].virtual_links = NULL;
#   82|   
#   83|     hb_objs[5].head = &(test_gsub_data[66]);

Error: CPPCHECK_WARNING (CWE-476): [#def81]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:83: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   81|     hb_objs[4].virtual_links = NULL;
#   82|   
#   83|->   hb_objs[5].head = &(test_gsub_data[66]);
#   84|     hb_objs[5].tail = &(test_gsub_data[72]);
#   85|     hb_objs[5].num_real_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def82]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:84: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   82|   
#   83|     hb_objs[5].head = &(test_gsub_data[66]);
#   84|->   hb_objs[5].tail = &(test_gsub_data[72]);
#   85|     hb_objs[5].num_real_links = 0;
#   86|     hb_objs[5].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def83]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:85: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   83|     hb_objs[5].head = &(test_gsub_data[66]);
#   84|     hb_objs[5].tail = &(test_gsub_data[72]);
#   85|->   hb_objs[5].num_real_links = 0;
#   86|     hb_objs[5].num_virtual_links = 0;
#   87|     hb_objs[5].real_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def84]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:86: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   84|     hb_objs[5].tail = &(test_gsub_data[72]);
#   85|     hb_objs[5].num_real_links = 0;
#   86|->   hb_objs[5].num_virtual_links = 0;
#   87|     hb_objs[5].real_links = NULL;
#   88|     hb_objs[5].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def85]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:87: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   85|     hb_objs[5].num_real_links = 0;
#   86|     hb_objs[5].num_virtual_links = 0;
#   87|->   hb_objs[5].real_links = NULL;
#   88|     hb_objs[5].virtual_links = NULL;
#   89|   

Error: CPPCHECK_WARNING (CWE-476): [#def86]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:88: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   86|     hb_objs[5].num_virtual_links = 0;
#   87|     hb_objs[5].real_links = NULL;
#   88|->   hb_objs[5].virtual_links = NULL;
#   89|   
#   90|     hb_objs[6].head = &(test_gsub_data[58]);

Error: CPPCHECK_WARNING (CWE-476): [#def87]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:90: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   88|     hb_objs[5].virtual_links = NULL;
#   89|   
#   90|->   hb_objs[6].head = &(test_gsub_data[58]);
#   91|     hb_objs[6].tail = &(test_gsub_data[66]);
#   92|     hb_objs[6].num_real_links = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def88]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:91: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   89|   
#   90|     hb_objs[6].head = &(test_gsub_data[58]);
#   91|->   hb_objs[6].tail = &(test_gsub_data[66]);
#   92|     hb_objs[6].num_real_links = 2;
#   93|     hb_objs[6].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def89]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   90|     hb_objs[6].head = &(test_gsub_data[58]);
#   91|     hb_objs[6].tail = &(test_gsub_data[66]);
#   92|->   hb_objs[6].num_real_links = 2;
#   93|     hb_objs[6].num_virtual_links = 0;
#   94|     hb_objs[6].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def90]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:93: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   91|     hb_objs[6].tail = &(test_gsub_data[66]);
#   92|     hb_objs[6].num_real_links = 2;
#   93|->   hb_objs[6].num_virtual_links = 0;
#   94|     hb_objs[6].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#   95|     hb_objs[6].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def91]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:94: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   92|     hb_objs[6].num_real_links = 2;
#   93|     hb_objs[6].num_virtual_links = 0;
#   94|->   hb_objs[6].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#   95|     hb_objs[6].real_links[0].width = 2;
#   96|     hb_objs[6].real_links[0].position = 6;

Error: CPPCHECK_WARNING (CWE-476): [#def92]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:95: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   93|     hb_objs[6].num_virtual_links = 0;
#   94|     hb_objs[6].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#   95|->   hb_objs[6].real_links[0].width = 2;
#   96|     hb_objs[6].real_links[0].position = 6;
#   97|     hb_objs[6].real_links[0].objidx = 5;

Error: CPPCHECK_WARNING (CWE-476): [#def93]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:96: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   94|     hb_objs[6].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#   95|     hb_objs[6].real_links[0].width = 2;
#   96|->   hb_objs[6].real_links[0].position = 6;
#   97|     hb_objs[6].real_links[0].objidx = 5;
#   98|     hb_objs[6].real_links[1].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def94]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   95|     hb_objs[6].real_links[0].width = 2;
#   96|     hb_objs[6].real_links[0].position = 6;
#   97|->   hb_objs[6].real_links[0].objidx = 5;
#   98|     hb_objs[6].real_links[1].width = 2;
#   99|     hb_objs[6].real_links[1].position = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def95]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   96|     hb_objs[6].real_links[0].position = 6;
#   97|     hb_objs[6].real_links[0].objidx = 5;
#   98|->   hb_objs[6].real_links[1].width = 2;
#   99|     hb_objs[6].real_links[1].position = 2;
#  100|     hb_objs[6].real_links[1].objidx = 6;

Error: CPPCHECK_WARNING (CWE-476): [#def96]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   97|     hb_objs[6].real_links[0].objidx = 5;
#   98|     hb_objs[6].real_links[1].width = 2;
#   99|->   hb_objs[6].real_links[1].position = 2;
#  100|     hb_objs[6].real_links[1].objidx = 6;
#  101|     hb_objs[6].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def97]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   98|     hb_objs[6].real_links[1].width = 2;
#   99|     hb_objs[6].real_links[1].position = 2;
#  100|->   hb_objs[6].real_links[1].objidx = 6;
#  101|     hb_objs[6].virtual_links = NULL;
#  102|   

Error: CPPCHECK_WARNING (CWE-476): [#def98]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#   99|     hb_objs[6].real_links[1].position = 2;
#  100|     hb_objs[6].real_links[1].objidx = 6;
#  101|->   hb_objs[6].virtual_links = NULL;
#  102|   
#  103|     hb_objs[7].head = &(test_gsub_data[50]);

Error: CPPCHECK_WARNING (CWE-476): [#def99]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  101|     hb_objs[6].virtual_links = NULL;
#  102|   
#  103|->   hb_objs[7].head = &(test_gsub_data[50]);
#  104|     hb_objs[7].tail = &(test_gsub_data[58]);
#  105|     hb_objs[7].num_real_links = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def100]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  102|   
#  103|     hb_objs[7].head = &(test_gsub_data[50]);
#  104|->   hb_objs[7].tail = &(test_gsub_data[58]);
#  105|     hb_objs[7].num_real_links = 1;
#  106|     hb_objs[7].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def101]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  103|     hb_objs[7].head = &(test_gsub_data[50]);
#  104|     hb_objs[7].tail = &(test_gsub_data[58]);
#  105|->   hb_objs[7].num_real_links = 1;
#  106|     hb_objs[7].num_virtual_links = 0;
#  107|     hb_objs[7].real_links = malloc (sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def102]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  104|     hb_objs[7].tail = &(test_gsub_data[58]);
#  105|     hb_objs[7].num_real_links = 1;
#  106|->   hb_objs[7].num_virtual_links = 0;
#  107|     hb_objs[7].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  108|     hb_objs[7].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def103]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  105|     hb_objs[7].num_real_links = 1;
#  106|     hb_objs[7].num_virtual_links = 0;
#  107|->   hb_objs[7].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  108|     hb_objs[7].real_links[0].width = 2;
#  109|     hb_objs[7].real_links[0].position = 6;

Error: CPPCHECK_WARNING (CWE-476): [#def104]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  106|     hb_objs[7].num_virtual_links = 0;
#  107|     hb_objs[7].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  108|->   hb_objs[7].real_links[0].width = 2;
#  109|     hb_objs[7].real_links[0].position = 6;
#  110|     hb_objs[7].real_links[0].objidx = 7;

Error: CPPCHECK_WARNING (CWE-476): [#def105]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  107|     hb_objs[7].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  108|     hb_objs[7].real_links[0].width = 2;
#  109|->   hb_objs[7].real_links[0].position = 6;
#  110|     hb_objs[7].real_links[0].objidx = 7;
#  111|     hb_objs[7].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def106]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  108|     hb_objs[7].real_links[0].width = 2;
#  109|     hb_objs[7].real_links[0].position = 6;
#  110|->   hb_objs[7].real_links[0].objidx = 7;
#  111|     hb_objs[7].virtual_links = NULL;
#  112|   

Error: CPPCHECK_WARNING (CWE-476): [#def107]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  109|     hb_objs[7].real_links[0].position = 6;
#  110|     hb_objs[7].real_links[0].objidx = 7;
#  111|->   hb_objs[7].virtual_links = NULL;
#  112|   
#  113|     hb_objs[8].head = &(test_gsub_data[44]);

Error: CPPCHECK_WARNING (CWE-476): [#def108]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:113: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  111|     hb_objs[7].virtual_links = NULL;
#  112|   
#  113|->   hb_objs[8].head = &(test_gsub_data[44]);
#  114|     hb_objs[8].tail = &(test_gsub_data[50]);
#  115|     hb_objs[8].num_real_links = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def109]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:114: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  112|   
#  113|     hb_objs[8].head = &(test_gsub_data[44]);
#  114|->   hb_objs[8].tail = &(test_gsub_data[50]);
#  115|     hb_objs[8].num_real_links = 2;
#  116|     hb_objs[8].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def110]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:115: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  113|     hb_objs[8].head = &(test_gsub_data[44]);
#  114|     hb_objs[8].tail = &(test_gsub_data[50]);
#  115|->   hb_objs[8].num_real_links = 2;
#  116|     hb_objs[8].num_virtual_links = 0;
#  117|     hb_objs[8].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def111]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:116: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  114|     hb_objs[8].tail = &(test_gsub_data[50]);
#  115|     hb_objs[8].num_real_links = 2;
#  116|->   hb_objs[8].num_virtual_links = 0;
#  117|     hb_objs[8].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#  118|     hb_objs[8].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def112]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:117: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  115|     hb_objs[8].num_real_links = 2;
#  116|     hb_objs[8].num_virtual_links = 0;
#  117|->   hb_objs[8].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#  118|     hb_objs[8].real_links[0].width = 2;
#  119|     hb_objs[8].real_links[0].position = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def113]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  116|     hb_objs[8].num_virtual_links = 0;
#  117|     hb_objs[8].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#  118|->   hb_objs[8].real_links[0].width = 2;
#  119|     hb_objs[8].real_links[0].position = 2;
#  120|     hb_objs[8].real_links[0].objidx = 3;

Error: CPPCHECK_WARNING (CWE-476): [#def114]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  117|     hb_objs[8].real_links = calloc (2, sizeof (hb_subset_serialize_link_t));
#  118|     hb_objs[8].real_links[0].width = 2;
#  119|->   hb_objs[8].real_links[0].position = 2;
#  120|     hb_objs[8].real_links[0].objidx = 3;
#  121|     hb_objs[8].real_links[1].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def115]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  118|     hb_objs[8].real_links[0].width = 2;
#  119|     hb_objs[8].real_links[0].position = 2;
#  120|->   hb_objs[8].real_links[0].objidx = 3;
#  121|     hb_objs[8].real_links[1].width = 2;
#  122|     hb_objs[8].real_links[1].position = 4;

Error: CPPCHECK_WARNING (CWE-476): [#def116]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:121: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  119|     hb_objs[8].real_links[0].position = 2;
#  120|     hb_objs[8].real_links[0].objidx = 3;
#  121|->   hb_objs[8].real_links[1].width = 2;
#  122|     hb_objs[8].real_links[1].position = 4;
#  123|     hb_objs[8].real_links[1].objidx = 8;

Error: CPPCHECK_WARNING (CWE-476): [#def117]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:122: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  120|     hb_objs[8].real_links[0].objidx = 3;
#  121|     hb_objs[8].real_links[1].width = 2;
#  122|->   hb_objs[8].real_links[1].position = 4;
#  123|     hb_objs[8].real_links[1].objidx = 8;
#  124|     hb_objs[8].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def118]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:123: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  121|     hb_objs[8].real_links[1].width = 2;
#  122|     hb_objs[8].real_links[1].position = 4;
#  123|->   hb_objs[8].real_links[1].objidx = 8;
#  124|     hb_objs[8].virtual_links = NULL;
#  125|   

Error: CPPCHECK_WARNING (CWE-476): [#def119]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  122|     hb_objs[8].real_links[1].position = 4;
#  123|     hb_objs[8].real_links[1].objidx = 8;
#  124|->   hb_objs[8].virtual_links = NULL;
#  125|   
#  126|     hb_objs[9].head = &(test_gsub_data[38]);

Error: CPPCHECK_WARNING (CWE-476): [#def120]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:126: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  124|     hb_objs[8].virtual_links = NULL;
#  125|   
#  126|->   hb_objs[9].head = &(test_gsub_data[38]);
#  127|     hb_objs[9].tail = &(test_gsub_data[44]);
#  128|     hb_objs[9].num_real_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def121]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:127: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  125|   
#  126|     hb_objs[9].head = &(test_gsub_data[38]);
#  127|->   hb_objs[9].tail = &(test_gsub_data[44]);
#  128|     hb_objs[9].num_real_links = 0;
#  129|     hb_objs[9].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def122]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:128: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  126|     hb_objs[9].head = &(test_gsub_data[38]);
#  127|     hb_objs[9].tail = &(test_gsub_data[44]);
#  128|->   hb_objs[9].num_real_links = 0;
#  129|     hb_objs[9].num_virtual_links = 0;
#  130|     hb_objs[9].real_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def123]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:129: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  127|     hb_objs[9].tail = &(test_gsub_data[44]);
#  128|     hb_objs[9].num_real_links = 0;
#  129|->   hb_objs[9].num_virtual_links = 0;
#  130|     hb_objs[9].real_links = NULL;
#  131|     hb_objs[9].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def124]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:130: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  128|     hb_objs[9].num_real_links = 0;
#  129|     hb_objs[9].num_virtual_links = 0;
#  130|->   hb_objs[9].real_links = NULL;
#  131|     hb_objs[9].virtual_links = NULL;
#  132|   

Error: CPPCHECK_WARNING (CWE-476): [#def125]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  129|     hb_objs[9].num_virtual_links = 0;
#  130|     hb_objs[9].real_links = NULL;
#  131|->   hb_objs[9].virtual_links = NULL;
#  132|   
#  133|     hb_objs[10].head = &(test_gsub_data[30]);

Error: CPPCHECK_WARNING (CWE-476): [#def126]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  131|     hb_objs[9].virtual_links = NULL;
#  132|   
#  133|->   hb_objs[10].head = &(test_gsub_data[30]);
#  134|     hb_objs[10].tail = &(test_gsub_data[38]);
#  135|     hb_objs[10].num_real_links = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def127]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:134: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  132|   
#  133|     hb_objs[10].head = &(test_gsub_data[30]);
#  134|->   hb_objs[10].tail = &(test_gsub_data[38]);
#  135|     hb_objs[10].num_real_links = 1;
#  136|     hb_objs[10].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def128]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:135: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  133|     hb_objs[10].head = &(test_gsub_data[30]);
#  134|     hb_objs[10].tail = &(test_gsub_data[38]);
#  135|->   hb_objs[10].num_real_links = 1;
#  136|     hb_objs[10].num_virtual_links = 0;
#  137|     hb_objs[10].real_links = malloc (sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def129]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  134|     hb_objs[10].tail = &(test_gsub_data[38]);
#  135|     hb_objs[10].num_real_links = 1;
#  136|->   hb_objs[10].num_virtual_links = 0;
#  137|     hb_objs[10].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  138|     hb_objs[10].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def130]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  135|     hb_objs[10].num_real_links = 1;
#  136|     hb_objs[10].num_virtual_links = 0;
#  137|->   hb_objs[10].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  138|     hb_objs[10].real_links[0].width = 2;
#  139|     hb_objs[10].real_links[0].position = 6;

Error: CPPCHECK_WARNING (CWE-476): [#def131]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  136|     hb_objs[10].num_virtual_links = 0;
#  137|     hb_objs[10].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  138|->   hb_objs[10].real_links[0].width = 2;
#  139|     hb_objs[10].real_links[0].position = 6;
#  140|     hb_objs[10].real_links[0].objidx = 10;

Error: CPPCHECK_WARNING (CWE-476): [#def132]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  137|     hb_objs[10].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  138|     hb_objs[10].real_links[0].width = 2;
#  139|->   hb_objs[10].real_links[0].position = 6;
#  140|     hb_objs[10].real_links[0].objidx = 10;
#  141|     hb_objs[10].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def133]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  138|     hb_objs[10].real_links[0].width = 2;
#  139|     hb_objs[10].real_links[0].position = 6;
#  140|->   hb_objs[10].real_links[0].objidx = 10;
#  141|     hb_objs[10].virtual_links = NULL;
#  142|   

Error: CPPCHECK_WARNING (CWE-476): [#def134]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:141: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  139|     hb_objs[10].real_links[0].position = 6;
#  140|     hb_objs[10].real_links[0].objidx = 10;
#  141|->   hb_objs[10].virtual_links = NULL;
#  142|   
#  143|     hb_objs[11].head = &(test_gsub_data[22]);

Error: CPPCHECK_WARNING (CWE-476): [#def135]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:143: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  141|     hb_objs[10].virtual_links = NULL;
#  142|   
#  143|->   hb_objs[11].head = &(test_gsub_data[22]);
#  144|     hb_objs[11].tail = &(test_gsub_data[30]);
#  145|     hb_objs[11].num_real_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def136]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  142|   
#  143|     hb_objs[11].head = &(test_gsub_data[22]);
#  144|->   hb_objs[11].tail = &(test_gsub_data[30]);
#  145|     hb_objs[11].num_real_links = 0;
#  146|     hb_objs[11].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def137]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:145: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  143|     hb_objs[11].head = &(test_gsub_data[22]);
#  144|     hb_objs[11].tail = &(test_gsub_data[30]);
#  145|->   hb_objs[11].num_real_links = 0;
#  146|     hb_objs[11].num_virtual_links = 0;
#  147|     hb_objs[11].real_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def138]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  144|     hb_objs[11].tail = &(test_gsub_data[30]);
#  145|     hb_objs[11].num_real_links = 0;
#  146|->   hb_objs[11].num_virtual_links = 0;
#  147|     hb_objs[11].real_links = NULL;
#  148|     hb_objs[11].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def139]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:147: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  145|     hb_objs[11].num_real_links = 0;
#  146|     hb_objs[11].num_virtual_links = 0;
#  147|->   hb_objs[11].real_links = NULL;
#  148|     hb_objs[11].virtual_links = NULL;
#  149|   

Error: CPPCHECK_WARNING (CWE-476): [#def140]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:148: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  146|     hb_objs[11].num_virtual_links = 0;
#  147|     hb_objs[11].real_links = NULL;
#  148|->   hb_objs[11].virtual_links = NULL;
#  149|   
#  150|     hb_objs[12].head = &(test_gsub_data[18]);

Error: CPPCHECK_WARNING (CWE-476): [#def141]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:150: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  148|     hb_objs[11].virtual_links = NULL;
#  149|   
#  150|->   hb_objs[12].head = &(test_gsub_data[18]);
#  151|     hb_objs[12].tail = &(test_gsub_data[22]);
#  152|     hb_objs[12].num_real_links = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def142]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:151: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  149|   
#  150|     hb_objs[12].head = &(test_gsub_data[18]);
#  151|->   hb_objs[12].tail = &(test_gsub_data[22]);
#  152|     hb_objs[12].num_real_links = 1;
#  153|     hb_objs[12].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def143]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  150|     hb_objs[12].head = &(test_gsub_data[18]);
#  151|     hb_objs[12].tail = &(test_gsub_data[22]);
#  152|->   hb_objs[12].num_real_links = 1;
#  153|     hb_objs[12].num_virtual_links = 0;
#  154|     hb_objs[12].real_links = malloc (sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def144]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:153: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  151|     hb_objs[12].tail = &(test_gsub_data[22]);
#  152|     hb_objs[12].num_real_links = 1;
#  153|->   hb_objs[12].num_virtual_links = 0;
#  154|     hb_objs[12].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  155|     hb_objs[12].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def145]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:154: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  152|     hb_objs[12].num_real_links = 1;
#  153|     hb_objs[12].num_virtual_links = 0;
#  154|->   hb_objs[12].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  155|     hb_objs[12].real_links[0].width = 2;
#  156|     hb_objs[12].real_links[0].position = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def146]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  153|     hb_objs[12].num_virtual_links = 0;
#  154|     hb_objs[12].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  155|->   hb_objs[12].real_links[0].width = 2;
#  156|     hb_objs[12].real_links[0].position = 0;
#  157|     hb_objs[12].real_links[0].objidx = 12;

Error: CPPCHECK_WARNING (CWE-476): [#def147]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  154|     hb_objs[12].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  155|     hb_objs[12].real_links[0].width = 2;
#  156|->   hb_objs[12].real_links[0].position = 0;
#  157|     hb_objs[12].real_links[0].objidx = 12;
#  158|     hb_objs[12].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def148]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  155|     hb_objs[12].real_links[0].width = 2;
#  156|     hb_objs[12].real_links[0].position = 0;
#  157|->   hb_objs[12].real_links[0].objidx = 12;
#  158|     hb_objs[12].virtual_links = NULL;
#  159|   

Error: CPPCHECK_WARNING (CWE-476): [#def149]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  156|     hb_objs[12].real_links[0].position = 0;
#  157|     hb_objs[12].real_links[0].objidx = 12;
#  158|->   hb_objs[12].virtual_links = NULL;
#  159|   
#  160|     hb_objs[13].head = &(test_gsub_data[10]);

Error: CPPCHECK_WARNING (CWE-476): [#def150]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:160: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  158|     hb_objs[12].virtual_links = NULL;
#  159|   
#  160|->   hb_objs[13].head = &(test_gsub_data[10]);
#  161|     hb_objs[13].tail = &(test_gsub_data[18]);
#  162|     hb_objs[13].num_real_links = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def151]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  159|   
#  160|     hb_objs[13].head = &(test_gsub_data[10]);
#  161|->   hb_objs[13].tail = &(test_gsub_data[18]);
#  162|     hb_objs[13].num_real_links = 1;
#  163|     hb_objs[13].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def152]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  160|     hb_objs[13].head = &(test_gsub_data[10]);
#  161|     hb_objs[13].tail = &(test_gsub_data[18]);
#  162|->   hb_objs[13].num_real_links = 1;
#  163|     hb_objs[13].num_virtual_links = 0;
#  164|     hb_objs[13].real_links = malloc (sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def153]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  161|     hb_objs[13].tail = &(test_gsub_data[18]);
#  162|     hb_objs[13].num_real_links = 1;
#  163|->   hb_objs[13].num_virtual_links = 0;
#  164|     hb_objs[13].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  165|     hb_objs[13].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def154]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  162|     hb_objs[13].num_real_links = 1;
#  163|     hb_objs[13].num_virtual_links = 0;
#  164|->   hb_objs[13].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  165|     hb_objs[13].real_links[0].width = 2;
#  166|     hb_objs[13].real_links[0].position = 6;

Error: CPPCHECK_WARNING (CWE-476): [#def155]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:165: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  163|     hb_objs[13].num_virtual_links = 0;
#  164|     hb_objs[13].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  165|->   hb_objs[13].real_links[0].width = 2;
#  166|     hb_objs[13].real_links[0].position = 6;
#  167|     hb_objs[13].real_links[0].objidx = 13;

Error: CPPCHECK_WARNING (CWE-476): [#def156]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  164|     hb_objs[13].real_links = malloc (sizeof (hb_subset_serialize_link_t));
#  165|     hb_objs[13].real_links[0].width = 2;
#  166|->   hb_objs[13].real_links[0].position = 6;
#  167|     hb_objs[13].real_links[0].objidx = 13;
#  168|     hb_objs[13].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def157]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  165|     hb_objs[13].real_links[0].width = 2;
#  166|     hb_objs[13].real_links[0].position = 6;
#  167|->   hb_objs[13].real_links[0].objidx = 13;
#  168|     hb_objs[13].virtual_links = NULL;
#  169|   

Error: CPPCHECK_WARNING (CWE-476): [#def158]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:168: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  166|     hb_objs[13].real_links[0].position = 6;
#  167|     hb_objs[13].real_links[0].objidx = 13;
#  168|->   hb_objs[13].virtual_links = NULL;
#  169|   
#  170|     hb_objs[14].head = &(test_gsub_data[0]);

Error: CPPCHECK_WARNING (CWE-476): [#def159]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  168|     hb_objs[13].virtual_links = NULL;
#  169|   
#  170|->   hb_objs[14].head = &(test_gsub_data[0]);
#  171|     hb_objs[14].tail = &(test_gsub_data[10]);
#  172|     hb_objs[14].num_real_links = 3;

Error: CPPCHECK_WARNING (CWE-476): [#def160]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  169|   
#  170|     hb_objs[14].head = &(test_gsub_data[0]);
#  171|->   hb_objs[14].tail = &(test_gsub_data[10]);
#  172|     hb_objs[14].num_real_links = 3;
#  173|     hb_objs[14].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def161]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  170|     hb_objs[14].head = &(test_gsub_data[0]);
#  171|     hb_objs[14].tail = &(test_gsub_data[10]);
#  172|->   hb_objs[14].num_real_links = 3;
#  173|     hb_objs[14].num_virtual_links = 0;
#  174|     hb_objs[14].real_links = calloc (3, sizeof (hb_subset_serialize_link_t));

Error: CPPCHECK_WARNING (CWE-476): [#def162]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  171|     hb_objs[14].tail = &(test_gsub_data[10]);
#  172|     hb_objs[14].num_real_links = 3;
#  173|->   hb_objs[14].num_virtual_links = 0;
#  174|     hb_objs[14].real_links = calloc (3, sizeof (hb_subset_serialize_link_t));
#  175|     hb_objs[14].real_links[0].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def163]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:174: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  172|     hb_objs[14].num_real_links = 3;
#  173|     hb_objs[14].num_virtual_links = 0;
#  174|->   hb_objs[14].real_links = calloc (3, sizeof (hb_subset_serialize_link_t));
#  175|     hb_objs[14].real_links[0].width = 2;
#  176|     hb_objs[14].real_links[0].position = 8;

Error: CPPCHECK_WARNING (CWE-476): [#def164]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:175: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  173|     hb_objs[14].num_virtual_links = 0;
#  174|     hb_objs[14].real_links = calloc (3, sizeof (hb_subset_serialize_link_t));
#  175|->   hb_objs[14].real_links[0].width = 2;
#  176|     hb_objs[14].real_links[0].position = 8;
#  177|     hb_objs[14].real_links[0].objidx = 9;

Error: CPPCHECK_WARNING (CWE-476): [#def165]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:176: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  174|     hb_objs[14].real_links = calloc (3, sizeof (hb_subset_serialize_link_t));
#  175|     hb_objs[14].real_links[0].width = 2;
#  176|->   hb_objs[14].real_links[0].position = 8;
#  177|     hb_objs[14].real_links[0].objidx = 9;
#  178|     hb_objs[14].real_links[1].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def166]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  175|     hb_objs[14].real_links[0].width = 2;
#  176|     hb_objs[14].real_links[0].position = 8;
#  177|->   hb_objs[14].real_links[0].objidx = 9;
#  178|     hb_objs[14].real_links[1].width = 2;
#  179|     hb_objs[14].real_links[1].position = 6;

Error: CPPCHECK_WARNING (CWE-476): [#def167]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  176|     hb_objs[14].real_links[0].position = 8;
#  177|     hb_objs[14].real_links[0].objidx = 9;
#  178|->   hb_objs[14].real_links[1].width = 2;
#  179|     hb_objs[14].real_links[1].position = 6;
#  180|     hb_objs[14].real_links[1].objidx = 11;

Error: CPPCHECK_WARNING (CWE-476): [#def168]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:179: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  177|     hb_objs[14].real_links[0].objidx = 9;
#  178|     hb_objs[14].real_links[1].width = 2;
#  179|->   hb_objs[14].real_links[1].position = 6;
#  180|     hb_objs[14].real_links[1].objidx = 11;
#  181|     hb_objs[14].real_links[2].width = 2;

Error: CPPCHECK_WARNING (CWE-476): [#def169]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  178|     hb_objs[14].real_links[1].width = 2;
#  179|     hb_objs[14].real_links[1].position = 6;
#  180|->   hb_objs[14].real_links[1].objidx = 11;
#  181|     hb_objs[14].real_links[2].width = 2;
#  182|     hb_objs[14].real_links[2].position = 4;

Error: CPPCHECK_WARNING (CWE-476): [#def170]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  179|     hb_objs[14].real_links[1].position = 6;
#  180|     hb_objs[14].real_links[1].objidx = 11;
#  181|->   hb_objs[14].real_links[2].width = 2;
#  182|     hb_objs[14].real_links[2].position = 4;
#  183|     hb_objs[14].real_links[2].objidx = 14;

Error: CPPCHECK_WARNING (CWE-476): [#def171]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  180|     hb_objs[14].real_links[1].objidx = 11;
#  181|     hb_objs[14].real_links[2].width = 2;
#  182|->   hb_objs[14].real_links[2].position = 4;
#  183|     hb_objs[14].real_links[2].objidx = 14;
#  184|     hb_objs[14].virtual_links = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def172]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:183: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  181|     hb_objs[14].real_links[2].width = 2;
#  182|     hb_objs[14].real_links[2].position = 4;
#  183|->   hb_objs[14].real_links[2].objidx = 14;
#  184|     hb_objs[14].virtual_links = NULL;
#  185|   

Error: CPPCHECK_WARNING (CWE-476): [#def173]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  182|     hb_objs[14].real_links[2].position = 4;
#  183|     hb_objs[14].real_links[2].objidx = 14;
#  184|->   hb_objs[14].virtual_links = NULL;
#  185|   
#  186|     hb_blob_t *result = hb_subset_serialize_or_fail (HB_TAG_NONE, hb_objs, 15);

Error: CPPCHECK_WARNING (CWE-476): [#def174]
harfbuzz-11.1.0/test/api/test-subset-repacker.c:201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hb_objs
#  199|     for (unsigned i = 0 ; i < 15; i++)
#  200|     {
#  201|->     if (hb_objs[i].real_links != NULL)
#  202|         free (hb_objs[i].real_links);
#  203|     }

Error: CPPCHECK_WARNING (CWE-476): [#def175]
harfbuzz-11.1.0/test/fuzzing/hb-repacker-fuzzer.cc:62: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: link_count
#   60|     {
#   61|       uint16_t parent_idx = links[i].parent;
#   62|->     link_count[parent_idx]++;
#   63|     }
#   64|   

Error: CPPCHECK_WARNING (CWE-476): [#def176]
harfbuzz-11.1.0/test/fuzzing/hb-repacker-fuzzer.cc:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: link_count
#   65|     for (uint32_t i = 0; i < num_objects; i++)
#   66|     {
#   67|->     objects[i].num_real_links = link_count[i];
#   68|       objects[i].real_links = (hb_subset_serialize_link_t*) calloc (link_count[i], sizeof (hb_subset_serialize_link_t));
#   69|       objects[i].num_virtual_links = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def177]
harfbuzz-11.1.0/test/fuzzing/hb-repacker-fuzzer.cc:68: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: link_count
#   66|     {
#   67|       objects[i].num_real_links = link_count[i];
#   68|->     objects[i].real_links = (hb_subset_serialize_link_t*) calloc (link_count[i], sizeof (hb_subset_serialize_link_t));
#   69|       objects[i].num_virtual_links = 0;
#   70|       objects[i].virtual_links = nullptr;

Error: CPPCHECK_WARNING (CWE-476): [#def178]
harfbuzz-11.1.0/test/fuzzing/hb-repacker-fuzzer.cc:77: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: link_count
#   75|       uint16_t parent_idx = links[i].parent;
#   76|       uint16_t child_idx = links[i].child + 1; // All indices are shifted by 1 by the null object.
#   77|->     hb_subset_serialize_link_t* link = &(objects[parent_idx].real_links[link_count[parent_idx] - 1]);
#   78|   
#   79|       link->width = links[i].width;

Error: CPPCHECK_WARNING (CWE-476): [#def179]
harfbuzz-11.1.0/test/fuzzing/hb-repacker-fuzzer.cc:82: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: link_count
#   80|       link->position = links[i].position;
#   81|       link->objidx = child_idx;
#   82|->     link_count[parent_idx]--;
#   83|     }
#   84|   

Error: CPPCHECK_WARNING (CWE-476): [#def180]
harfbuzz-11.1.0/test/fuzzing/hb-repacker-fuzzer.cc:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: copy
#  109|   
#  110|       char* copy = (char*) calloc (1, blob_size);
#  111|->     memcpy (copy, data, blob_size);
#  112|       objects[i].head = (char*) copy;
#  113|       objects[i].tail = (char*) (copy + blob_size);

Error: CPPCHECK_WARNING (CWE-682): [#def181]
harfbuzz-11.1.0/test/fuzzing/hb-repacker-fuzzer.cc:113: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  111|       memcpy (copy, data, blob_size);
#  112|       objects[i].head = (char*) copy;
#  113|->     objects[i].tail = (char*) (copy + blob_size);
#  114|   
#  115|       size -= blob_size;

Error: CPPCHECK_WARNING (CWE-476): [#def182]
harfbuzz-11.1.0/test/threads/hb-shape-threads.cc:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tests
#  162|       for (unsigned i = 0; i < num_tests; i++)
#  163|       {
#  164|->       tests[i].is_variable = true;
#  165|         tests[i].font_path = argv[3 + i * 2];
#  166|         tests[i].text_path = argv[4 + i * 2];

Error: CPPCHECK_WARNING (CWE-476): [#def183]
harfbuzz-11.1.0/test/threads/hb-shape-threads.cc:165: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tests
#  163|       {
#  164|         tests[i].is_variable = true;
#  165|->       tests[i].font_path = argv[3 + i * 2];
#  166|         tests[i].text_path = argv[4 + i * 2];
#  167|       }

Error: CPPCHECK_WARNING (CWE-476): [#def184]
harfbuzz-11.1.0/test/threads/hb-shape-threads.cc:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tests
#  164|         tests[i].is_variable = true;
#  165|         tests[i].font_path = argv[3 + i * 2];
#  166|->       tests[i].text_path = argv[4 + i * 2];
#  167|       }
#  168|     }

Error: CPPCHECK_WARNING (CWE-476): [#def185]
harfbuzz-11.1.0/test/threads/hb-subset-threads.cc:168: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tests
#  166|       for (unsigned i = 0; i < num_tests; i++)
#  167|       {
#  168|->       tests[i].font_path = argv[3 + i];
#  169|       }
#  170|     }

Error: CPPCHECK_WARNING (CWE-823): [#def186]
harfbuzz-11.1.0/util/ansi-print.hh:177: error[arrayIndexOutOfBounds]: Array 'freq[8]' accessed at index 8, which is out of bounds.
#  175|         if (i != bg && (fg == 8 || freq[fg] < freq[i]))
#  176|   	fg = i;
#  177|->     if (freq[fg] == 0) {
#  178|         fg = bg;
#  179|         unicolor = true;

Error: CPPCHECK_WARNING (CWE-476): [#def187]
harfbuzz-11.1.0/util/hb-info.cc:807: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tags
#  805|       for (unsigned i = 0; i < count; i++)
#  806|       {
#  807|->       hb_tag_t tag = tags[i];
#  808|   
#  809|         hb_blob_t *blob = hb_face_reference_table (face, tag);

Error: CPPCHECK_WARNING (CWE-476): [#def188]
harfbuzz-11.1.0/util/hb-info.cc:1189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: axes
# 1187|       for (unsigned i = 0; i < count; i++)
# 1188|       {
# 1189|->       const auto &axis = axes[i];
# 1190|         if (axis.flags & HB_OT_VAR_AXIS_FLAG_HIDDEN)
# 1191|   	has_hidden = true;

Error: CPPCHECK_WARNING (CWE-476): [#def189]
harfbuzz-11.1.0/util/hb-info.cc:1240: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: coords
# 1238|   	printf ("%u	%-32s", i, name);
# 1239|   	for (unsigned j = 0; j < coords_count; j++)
# 1240|-> 	  printf ("%g, ", (double) coords[j]);
# 1241|   	printf ("\n");
# 1242|   

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-168.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameharfbuzz-11.1.0-1.fc43
store-results-to/tmp/tmpnojkx_k4/harfbuzz-11.1.0-1.fc43.tar.xz
time-created2025-04-25 13:07:43
time-finished2025-04-25 13:16:47
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpnojkx_k4/harfbuzz-11.1.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpnojkx_k4/harfbuzz-11.1.0-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9