Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/test/api/test-paint.c:230: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stops
#  228|     for (unsigned int i = 0; i < len; i++)
#  229|       print (data, "%.3g %d %d %d %d",
#  230|->            stops[i].offset,
#  231|              hb_color_get_red (stops[i].color),
#  232|              hb_color_get_green (stops[i].color),

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/test/api/test-paint.c:231: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stops
#  229|       print (data, "%.3g %d %d %d %d",
#  230|              stops[i].offset,
#  231|->            hb_color_get_red (stops[i].color),
#  232|              hb_color_get_green (stops[i].color),
#  233|              hb_color_get_blue (stops[i].color),

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/test/api/test-paint.c:232: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stops
#  230|              stops[i].offset,
#  231|              hb_color_get_red (stops[i].color),
#  232|->            hb_color_get_green (stops[i].color),
#  233|              hb_color_get_blue (stops[i].color),
#  234|              hb_color_get_alpha (stops[i].color));

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/test/api/test-paint.c:233: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stops
#  231|              hb_color_get_red (stops[i].color),
#  232|              hb_color_get_green (stops[i].color),
#  233|->            hb_color_get_blue (stops[i].color),
#  234|              hb_color_get_alpha (stops[i].color));
#  235|     data->level -= 1;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/test/api/test-paint.c:234: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: stops
#  232|              hb_color_get_green (stops[i].color),
#  233|              hb_color_get_blue (stops[i].color),
#  234|->            hb_color_get_alpha (stops[i].color));
#  235|     data->level -= 1;
#  236|   }

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   34|   {
#   35|     demo_atlas_t *at = (demo_atlas_t *) calloc (1, sizeof (demo_atlas_t));
#   36|->   at->refcount = 1;
#   37|   
#   38|     glGetIntegerv (GL_ACTIVE_TEXTURE, (GLint *) &at->tex_unit);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:40: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   38|     glGetIntegerv (GL_ACTIVE_TEXTURE, (GLint *) &at->tex_unit);
#   39|     glGenTextures (1, &at->tex_name);
#   40|->   at->capacity = capacity;
#   41|     at->cursor = 0;
#   42|   

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:41: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   39|     glGenTextures (1, &at->tex_name);
#   40|     at->capacity = capacity;
#   41|->   at->cursor = 0;
#   42|   
#   43|   #ifdef HB_GPU_ATLAS_2D

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:53: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   51|   #else
#   52|     glGenBuffers (1, &at->buf_name);
#   53|->   glBindBuffer (GL_TEXTURE_BUFFER, at->buf_name);
#   54|     glBufferData (GL_TEXTURE_BUFFER, capacity * TEXEL_SIZE, NULL, GL_STATIC_DRAW);
#   55|     demo_atlas_bind_texture (at);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:56: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   54|     glBufferData (GL_TEXTURE_BUFFER, capacity * TEXEL_SIZE, NULL, GL_STATIC_DRAW);
#   55|     demo_atlas_bind_texture (at);
#   56|->   gl(TexBuffer) (GL_TEXTURE_BUFFER, GL_RGBA16I, at->buf_name);
#   57|   #endif
#   58|   

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   71|   {
#   72|     demo_atlas_t *at = (demo_atlas_t *) calloc (1, sizeof (demo_atlas_t));
#   73|->   at->refcount = 1;
#   74|     at->ext = *backend;
#   75|     return at;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:74: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   72|     demo_atlas_t *at = (demo_atlas_t *) calloc (1, sizeof (demo_atlas_t));
#   73|     at->refcount = 1;
#   74|->   at->ext = *backend;
#   75|     return at;
#   76|   }

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   95|   demo_atlas_bind_texture (demo_atlas_t *at)
#   96|   {
#   97|->   glActiveTexture (at->tex_unit);
#   98|   #ifdef HB_GPU_ATLAS_2D
#   99|     glBindTexture (GL_TEXTURE_2D, at->tex_name);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-atlas.cc:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: at
#   99|     glBindTexture (GL_TEXTURE_2D, at->tex_name);
#  100|   #else
#  101|->   glBindTexture (GL_TEXTURE_BUFFER, at->tex_name);
#  102|   #endif
#  103|   }

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-buffer.cc:31: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#   29|     demo_buffer_t *buffer = (demo_buffer_t *) calloc (1, sizeof (demo_buffer_t));
#   30|   
#   31|->   buffer->vertices = new std::vector<glyph_vertex_t>;
#   32|   
#   33|     demo_buffer_clear (buffer);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-buffer.cc:52: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#   50|   demo_buffer_clear (demo_buffer_t *buffer)
#   51|   {
#   52|->   buffer->vertices->clear ();
#   53|     demo_extents_clear (&buffer->ink_extents);
#   54|     demo_extents_clear (&buffer->logical_extents);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-buffer.cc:55: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
#   53|     demo_extents_clear (&buffer->ink_extents);
#   54|     demo_extents_clear (&buffer->logical_extents);
#   55|->   buffer->generation++;
#   56|   }
#   57|   

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-font.cc:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: font
#   34|     demo_font_t *font = (demo_font_t *) calloc (1, sizeof (demo_font_t));
#   35|   
#   36|->   font->face = hb_face_reference (hb_font_get_face (hb_font));
#   37|     font->font = hb_font_reference (hb_font);
#   38|     font->glyph_cache = new glyph_cache_t ();

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-font.cc:37: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: font
#   35|   
#   36|     font->face = hb_face_reference (hb_font_get_face (hb_font));
#   37|->   font->font = hb_font_reference (hb_font);
#   38|     font->glyph_cache = new glyph_cache_t ();
#   39|     font->atlas = demo_atlas_reference (atlas);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-font.cc:38: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: font
#   36|     font->face = hb_face_reference (hb_font_get_face (hb_font));
#   37|     font->font = hb_font_reference (hb_font);
#   38|->   font->glyph_cache = new glyph_cache_t ();
#   39|     font->atlas = demo_atlas_reference (atlas);
#   40|     font->draw_only = draw_only;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-font.cc:39: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: font
#   37|     font->font = hb_font_reference (hb_font);
#   38|     font->glyph_cache = new glyph_cache_t ();
#   39|->   font->atlas = demo_atlas_reference (atlas);
#   40|     font->draw_only = draw_only;
#   41|     if (draw_only)

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-font.cc:40: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: font
#   38|     font->glyph_cache = new glyph_cache_t ();
#   39|     font->atlas = demo_atlas_reference (atlas);
#   40|->   font->draw_only = draw_only;
#   41|     if (draw_only)
#   42|       font->d = hb_gpu_draw_create_or_fail ();

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-font.cc:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: font
#   40|     font->draw_only = draw_only;
#   41|     if (draw_only)
#   42|->     font->d = hb_gpu_draw_create_or_fail ();
#   43|     else
#   44|       font->p = hb_gpu_paint_create_or_fail ();

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-font.cc:44: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: font
#   42|       font->d = hb_gpu_draw_create_or_fail ();
#   43|     else
#   44|->     font->p = hb_gpu_paint_create_or_fail ();
#   45|   
#   46|     return font;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-glstate.cc:17: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: st
#   15|     demo_glstate_t *st = (demo_glstate_t *) calloc (1, sizeof (demo_glstate_t));
#   16|   
#   17|->   st->program = demo_shader_create_program (draw_only);
#   18|     st->atlas = demo_atlas_create (1024 * 1024);
#   19|   

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-glstate.cc:18: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: st
#   16|   
#   17|     st->program = demo_shader_create_program (draw_only);
#   18|->   st->atlas = demo_atlas_create (1024 * 1024);
#   19|   
#   20|     /* Bind the program so demo_font_t can upload the palette

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-glstate.cc:23: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: st
#   21|      * uniform during glyph upload (which happens before the first
#   22|      * render, i.e. before demo_view_setup re-binds it). */
#   23|->   glUseProgram (st->program);
#   24|   
#   25|     return st;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#   90|     demo_view_t *vu = (demo_view_t *) calloc (1, sizeof (demo_view_t));
#   91|   
#   92|->   vu->renderer = renderer;
#   93|     vu->window = window;
#   94|     vu->needs_redraw = true;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:93: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#   91|   
#   92|     vu->renderer = renderer;
#   93|->   vu->window = window;
#   94|     vu->needs_redraw = true;
#   95|     demo_view_reset (vu);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:94: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#   92|     vu->renderer = renderer;
#   93|     vu->window = window;
#   94|->   vu->needs_redraw = true;
#   95|     demo_view_reset (vu);
#   96|   

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  106|     demo_view_t *vu = (demo_view_t *) calloc (1, sizeof (demo_view_t));
#  107|   
#  108|->   vu->renderer = renderer;
#  109|     vu->fb_width = fb_width;
#  110|     vu->fb_height = fb_height;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  107|   
#  108|     vu->renderer = renderer;
#  109|->   vu->fb_width = fb_width;
#  110|     vu->fb_height = fb_height;
#  111|     vu->win_width = win_width;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  108|     vu->renderer = renderer;
#  109|     vu->fb_width = fb_width;
#  110|->   vu->fb_height = fb_height;
#  111|     vu->win_width = win_width;
#  112|     vu->win_height = win_height;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  109|     vu->fb_width = fb_width;
#  110|     vu->fb_height = fb_height;
#  111|->   vu->win_width = win_width;
#  112|     vu->win_height = win_height;
#  113|     vu->needs_redraw = true;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  110|     vu->fb_height = fb_height;
#  111|     vu->win_width = win_width;
#  112|->   vu->win_height = win_height;
#  113|     vu->needs_redraw = true;
#  114|     demo_view_reset (vu);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:113: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  111|     vu->win_width = win_width;
#  112|     vu->win_height = win_height;
#  113|->   vu->needs_redraw = true;
#  114|     demo_view_reset (vu);
#  115|   

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  131|   demo_view_reset (demo_view_t *vu)
#  132|   {
#  133|->   vu->perspective = 16;
#  134|     vu->scalex = vu->scaley = 1;
#  135|     vu->translate.x = vu->translate.y = 0;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:134: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  132|   {
#  133|     vu->perspective = 16;
#  134|->   vu->scalex = vu->scaley = 1;
#  135|     vu->translate.x = vu->translate.y = 0;
#  136|     vu->screen_angle = 0;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:135: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  133|     vu->perspective = 16;
#  134|     vu->scalex = vu->scaley = 1;
#  135|->   vu->translate.x = vu->translate.y = 0;
#  136|     vu->screen_angle = 0;
#  137|     trackball (vu->quat , 0.0, 0.0, 0.0, 0.0);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  134|     vu->scalex = vu->scaley = 1;
#  135|     vu->translate.x = vu->translate.y = 0;
#  136|->   vu->screen_angle = 0;
#  137|     trackball (vu->quat , 0.0, 0.0, 0.0, 0.0);
#  138|     vset (vu->rot_axis, 0., 0., 1.);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  135|     vu->translate.x = vu->translate.y = 0;
#  136|     vu->screen_angle = 0;
#  137|->   trackball (vu->quat , 0.0, 0.0, 0.0, 0.0);
#  138|     vset (vu->rot_axis, 0., 0., 1.);
#  139|     vu->rot_speed = ANIMATION_SPEED;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  136|     vu->screen_angle = 0;
#  137|     trackball (vu->quat , 0.0, 0.0, 0.0, 0.0);
#  138|->   vset (vu->rot_axis, 0., 0., 1.);
#  139|     vu->rot_speed = ANIMATION_SPEED;
#  140|     vu->needs_redraw = true;

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  137|     trackball (vu->quat , 0.0, 0.0, 0.0, 0.0);
#  138|     vset (vu->rot_axis, 0., 0., 1.);
#  139|->   vu->rot_speed = ANIMATION_SPEED;
#  140|     vu->needs_redraw = true;
#  141|   }

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/gpu/demo-view.cc:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vu
#  138|     vset (vu->rot_axis, 0., 0., 1.);
#  139|     vu->rot_speed = ANIMATION_SPEED;
#  140|->   vu->needs_redraw = true;
#  141|   }
#  142|   

Error: COMPILER_WARNING:
harfbuzz-14.3.0/util/gpu/demo-view.cc: scope_hint: In function ‘void demo_view_key_func(demo_view_t*, int, int, int, int)’
harfbuzz-14.3.0/util/gpu/demo-view.cc:373:7: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  373 |       if (vu->fullscreen)
#      |       ^~
harfbuzz-14.3.0/util/gpu/demo-view.cc:380:5: note: here
#  380 |     case GLFW_KEY_Q:
#      |     ^~~~
#  371|       case GLFW_KEY_ESCAPE:
#  372|   #ifndef HB_GPU_NO_GLFW
#  373|->       if (vu->fullscreen)
#  374|         {
#  375|   	demo_view_toggle_fullscreen (vu);

Error: CPPCHECK_WARNING (CWE-476):
harfbuzz-14.3.0/util/hb-ft-raster.cc:113: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ft_coords
#  111|         FT_Fixed *ft_coords = (FT_Fixed *) malloc (coords_len * sizeof (FT_Fixed));
#  112|         for (unsigned i = 0; i < coords_len; i++)
#  113|-> 	ft_coords[i] = (FT_Fixed) (coords[i] * 65536.f);
#  114|         FT_Set_Var_Design_Coordinates (ft_face, coords_len, ft_coords);
#  115|         free (ft_coords);
