Error: CPPCHECK_WARNING (CWE-476): [#def1] harfbuzz-14.2.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): [#def2] harfbuzz-14.2.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): [#def3] harfbuzz-14.2.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): [#def4] harfbuzz-14.2.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): [#def5] harfbuzz-14.2.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): [#def6] harfbuzz-14.2.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): [#def7] harfbuzz-14.2.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): [#def8] harfbuzz-14.2.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): [#def9] harfbuzz-14.2.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): [#def10] harfbuzz-14.2.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): [#def11] harfbuzz-14.2.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): [#def12] harfbuzz-14.2.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): [#def13] harfbuzz-14.2.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): [#def14] harfbuzz-14.2.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): [#def15] harfbuzz-14.2.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): [#def16] harfbuzz-14.2.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): [#def17] harfbuzz-14.2.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): [#def18] harfbuzz-14.2.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): [#def19] harfbuzz-14.2.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): [#def20] harfbuzz-14.2.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): [#def21] harfbuzz-14.2.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): [#def22] harfbuzz-14.2.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): [#def23] harfbuzz-14.2.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): [#def24] harfbuzz-14.2.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): [#def25] harfbuzz-14.2.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): [#def26] harfbuzz-14.2.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): [#def27] harfbuzz-14.2.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): [#def28] harfbuzz-14.2.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): [#def29] harfbuzz-14.2.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): [#def30] harfbuzz-14.2.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): [#def31] harfbuzz-14.2.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): [#def32] harfbuzz-14.2.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): [#def33] harfbuzz-14.2.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): [#def34] harfbuzz-14.2.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): [#def35] harfbuzz-14.2.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): [#def36] harfbuzz-14.2.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): [#def37] harfbuzz-14.2.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): [#def38] harfbuzz-14.2.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): [#def39] harfbuzz-14.2.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: CPPCHECK_WARNING (CWE-476): [#def40] harfbuzz-14.2.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);
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-142.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | harfbuzz-12.3.2-1.fc44 |
| diffbase-store-results-to | /tmp/tmpvu45dafh/harfbuzz-12.3.2-1.fc44.tar.xz |
| diffbase-time-created | 2026-06-01 12:57:20 |
| diffbase-time-finished | 2026-06-01 13:06:31 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpvu45dafh/harfbuzz-12.3.2-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpvu45dafh/harfbuzz-12.3.2-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-142.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | harfbuzz-14.2.0-1.fc45 |
| store-results-to | /tmp/tmp_ir0rglu/harfbuzz-14.2.0-1.fc45.tar.xz |
| time-created | 2026-06-01 13:06:56 |
| time-finished | 2026-06-01 13:16:46 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp_ir0rglu/harfbuzz-14.2.0-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_ir0rglu/harfbuzz-14.2.0-1.fc45.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |