freetype-2.13.3-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/bin/freetype-config:35:1: warning[SC2034]: orig_prefix appears unused. Verify use (or export if used externally).
#   33|   static_libs=`pkgconf --static --libs freetype2`
#   34|   
#   35|-> orig_prefix=$prefix
#   36|   orig_exec_prefix=$exec_prefix
#   37|   

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/freetype-config:36:1: warning[SC2034]: orig_exec_prefix appears unused. Verify use (or export if used externally).
#   34|   
#   35|   orig_prefix=$prefix
#   36|-> orig_exec_prefix=$exec_prefix
#   37|   
#   38|   orig_includedir=$includedir

Error: SHELLCHECK_WARNING (CWE-457): [#def3]
/usr/bin/freetype-config:180:11: warning[SC2154]: libs_L is referenced but not assigned.
#  178|   if test "$echo_libs" = "yes" ; then
#  179|     if test "$show_static" = "yes" ; then
#  180|->     libs="$libs_L $static_libs"
#  181|     else
#  182|       libs="$libs_L $dynamic_libs"

Error: COMPILER_WARNING (CWE-457): [#def4]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/gblany.h: scope_hint: In function '_gblender_spans_rgb565'
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/gblblit.c:163:69: warning[-Wuninitialized]: 'color' is used uninitialized
#  163 | #define  GDST_PIX(p,d)           unsigned int  p = GRGB565_TO_RGB24(*(unsigned short*)(d))
#      |                                                                     ^
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/gblblit.c:183: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/gblany.h:49:19: note: 'color' declared here
#   49 |   grColor         color   = surface->color;
#      |                   ^~~~~
#  161|                                                        GRGB565_TO_GREEN(*(unsigned short*)(d)), \
#  162|                                                        GRGB565_TO_RED  (*(unsigned short*)(d)) }
#  163|-> #define  GDST_PIX(p,d)           unsigned int  p = GRGB565_TO_RGB24(*(unsigned short*)(d))
#  164|   #define  GDST_COPY(d)            *(unsigned short*)(d) = (unsigned short)color.value
#  165|   

Error: COMPILER_WARNING (CWE-457): [#def5]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/gblany.h: scope_hint: In function '_gblender_spans_rgb555'
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/gblblit.c:192:69: warning[-Wuninitialized]: 'color' is used uninitialized
#  192 | #define  GDST_PIX(p,d)           unsigned int  p = GRGB555_TO_RGB24(*(unsigned short*)(d))
#      |                                                                     ^
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/gblblit.c:212: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/gblany.h:49:19: note: 'color' declared here
#   49 |   grColor         color   = surface->color;
#      |                   ^~~~~
#  190|                                                        GRGB555_TO_GREEN(*(unsigned short*)(d)), \
#  191|                                                        GRGB555_TO_RED  (*(unsigned short*)(d)) }
#  192|-> #define  GDST_PIX(p,d)           unsigned int  p = GRGB555_TO_RGB24(*(unsigned short*)(d))
#  193|   #define  GDST_COPY(d)            *(unsigned short*)(d) = (unsigned short)color.value
#  194|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/x11/grx11.c: scope_hint: In function 'gr_x11_surface_resize'
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/graph/x11/grx11.c:1153:28: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
# 1151|       ximage->bytes_per_line = pitch;
# 1152|       ximage->width          = width;
# 1153|->     ximage->height         = height;
# 1154|   
# 1155|       return 1;

Error: CPPCHECK_WARNING (CWE-404): [#def7]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftbench.c:906: error[resourceLeak]: Resource leak: file
#  904|                      "couldn't allocate memory to pre-load font file\n" );
#  905|   
#  906|->           return 1;
#  907|           }
#  908|   

Error: CPPCHECK_WARNING (CWE-404): [#def8]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftbench.c:915: error[resourceLeak]: Resource leak: file
#  913|             memory_file = NULL;
#  914|   
#  915|->           return 1;
#  916|           }
#  917|         }

Error: CPPCHECK_WARNING (CWE-404): [#def9]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftbench.c:917: error[resourceLeak]: Resource leak: file
#  915|             return 1;
#  916|           }
#  917|->       }
#  918|   
#  919|         error = FT_New_Memory_Face( lib,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftcommon.c: scope_hint: In function ‘FTDemo_Install_Font’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftcommon.c:564:14: warning[-Wanalyzer-malloc-leak]: leak of ‘font’
#  562|       error = FT_New_Face( handle->library, filepath, -1, &face );
#  563|       if ( error )
#  564|->       return error;
#  565|       num_faces = face->num_faces;
#  566|       FT_Done_Face( face );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftcommon.c:599:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘font’
#  597|           font = (PFont)malloc( sizeof ( *font ) );
#  598|   
#  599|->         font->filepathname = ft_strdup( filepath );
#  600|           if ( !font->filepathname )
#  601|             return FT_Err_Out_Of_Memory;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftdiff.c: scope_hint: In function ‘render_state_draw’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftdiff.c:594:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘face’
#  592|   
#  593|       if ( column->use_lcd_filter )
#  594|->       FT_Library_SetLcdFilter( face->glyph->library, column->lcd_filter );
#  595|   
#  596|       if ( column->use_custom_lcd_filter )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftdiff.c:597:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘face’
#  595|   
#  596|       if ( column->use_custom_lcd_filter )
#  597|->       FT_Library_SetLcdFilterWeights( face->glyph->library,
#  598|                                         column->filter_weights );
#  599|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftdiff.c:617:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘face’
#  615|         int           ch;
#  616|         FT_UInt       gindex;
#  617|->       FT_GlyphSlot  slot = face->glyph;
#  618|         FT_Bitmap*    map  = &slot->bitmap;
#  619|         FT_Long       xmax;

Error: CPPCHECK_WARNING (CWE-401): [#def15]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftdump.c:1105: error[memleakOnRealloc]: Common realloc mistake: 'buffer' nulled but not freed upon failure
# 1103|         goto Glyf;
# 1104|   
# 1105|->     buffer = (FT_Byte*)realloc( buffer, prep_length );
# 1106|       if ( buffer == NULL )
# 1107|         goto Exit;

Error: CPPCHECK_WARNING (CWE-401): [#def16]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftdump.c:1138: error[memleakOnRealloc]: Common realloc mistake: 'buffer' nulled but not freed upon failure
# 1136|         goto Exit;
# 1137|   
# 1138|->     buffer = (FT_Byte*)realloc( buffer, glyf_length );
# 1139|       if ( buffer == NULL )
# 1140|         goto Exit;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftgrid.c: scope_hint: In function ‘bitmap_scale’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftgrid.c:430:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
#  428|             for ( j = 0; j < pitch * scale * 8; j++ )
#  429|               if ( s[i * pitch + j / scale / 8] & ( 0x80 >> ( j / scale & 7 ) ) )
#  430|->               line[j / 8] |= 0x80 >> ( j & 7 );
#  431|               else
#  432|                 line[j / 8] &= ~( 0x80 >> ( j & 7 ) );

Error: GCC_ANALYZER_WARNING (CWE-457): [#def18]
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ftgrid.c:432:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
#  430|                 line[j / 8] |= 0x80 >> ( j & 7 );
#  431|               else
#  432|->               line[j / 8] &= ~( 0x80 >> ( j & 7 ) );
#  433|   
#  434|             for ( k = 1; k < scale; k++, line += pitch * scale )

Error: GCC_ANALYZER_WARNING (CWE-688): [#def19]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c: scope_hint: In function 'FT_Stream_ReadFields'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/ftstdlib.h:92:21: warning[-Wanalyzer-null-argument]: use of NULL 'cursor' where non-null expected
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro 'ft_memcpy'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:778:13: note: in expansion of macro 'FT_MEM_COPY'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbase.c:36: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:292:24: note: in expansion of macro 'FT_OFFSET'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro 'ft_memcpy'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:778:13: note: in expansion of macro 'FT_MEM_COPY'
<built-in>: note: argument 2 of '__builtin_memcpy' must be non-null
#   90|   #define ft_memchr   memchr
#   91|   #define ft_memcmp   memcmp
#   92|-> #define ft_memcpy   memcpy
#   93|   #define ft_memmove  memmove
#   94|   #define ft_memset   memset

Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
freetype-2.13.3-build/freetype-2.13.3/builds/unix/ftconfig.h:41: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftdebug.h:29: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:19: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/ftstdlib.h:92:21: warning[-Wanalyzer-null-argument]: use of NULL 't' where non-null expected
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro 'ft_memcpy'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:254:11: note: in expansion of macro 'FT_MEM_COPY'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:631:11: note: in expansion of macro 'FT_ARRAY_COPY'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:91:34: note: in definition of macro 'FT_PIX_FLOOR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:932:12: note: in expansion of macro 'FT_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro 'ft_memcpy'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:254:11: note: in expansion of macro 'FT_MEM_COPY'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:631:11: note: in expansion of macro 'FT_ARRAY_COPY'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro 'ft_memcpy'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:254:11: note: in expansion of macro 'FT_MEM_COPY'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:631:11: note: in expansion of macro 'FT_ARRAY_COPY'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
#   90|   #define ft_memchr   memchr
#   91|   #define ft_memcmp   memcmp
#   92|-> #define ft_memcpy   memcpy
#   93|   #define ft_memmove  memmove
#   94|   #define ft_memset   memset

Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
freetype-2.13.3-build/freetype-2.13.3/builds/unix/ftconfig.h:41: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/freetype.h:24: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:55: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c: scope_hint: In function ‘RunIns’
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/ftstdlib.h:92:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘save_cvt’ where non-null expected
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro ‘ft_memcpy’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:2578:9: note: in expansion of macro ‘FT_MEM_COPY’
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro ‘ft_memcpy’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:2578:9: note: in expansion of macro ‘FT_MEM_COPY’
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro ‘ft_memcpy’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:2578:9: note: in expansion of macro ‘FT_MEM_COPY’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   90|   #define ft_memchr   memchr
#   91|   #define ft_memcmp   memcmp
#   92|-> #define ft_memcpy   memcpy
#   93|   #define ft_memmove  memmove
#   94|   #define ft_memset   memset

Error: GCC_ANALYZER_WARNING (CWE-688): [#def22]
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/ftstdlib.h:92:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘save_storage’ where non-null expected
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro ‘ft_memcpy’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:2583:9: note: in expansion of macro ‘FT_MEM_COPY’
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:32: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttobjs.h:23: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:67: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:48: note: in definition of macro ‘FT_MEM_COPY’
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro ‘ft_memcpy’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:2583:9: note: in expansion of macro ‘FT_MEM_COPY’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   90|   #define ft_memchr   memchr
#   91|   #define ft_memcmp   memcmp
#   92|-> #define ft_memcpy   memcpy
#   93|   #define ft_memmove  memmove
#   94|   #define ft_memset   memset

Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/ftstdlib.h:92:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘storage’ where non-null expected
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro ‘ft_memcpy’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:2583:9: note: in expansion of macro ‘FT_MEM_COPY’
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:48: note: in definition of macro ‘FT_MEM_COPY’
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:238:11: note: in expansion of macro ‘ft_memcpy’
freetype-2.13.3-build/freetype-2.13.3/ft2demos-2.13.3/src/ttdebug.c:2583:9: note: in expansion of macro ‘FT_MEM_COPY’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#   90|   #define ft_memchr   memchr
#   91|   #define ft_memcmp   memcmp
#   92|-> #define ft_memcpy   memcpy
#   93|   #define ft_memmove  memmove
#   94|   #define ft_memset   memset

Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
freetype-2.13.3-build/freetype-2.13.3/builds/unix/ftconfig.h:41: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c: scope_hint: In function 'FT_Load_Glyph'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/ftstdlib.h:102:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:991:11: note: in expansion of macro 'ft_strstr'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:534:38: note: in expansion of macro 'FT_MODULE_CLASS'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:980:13: note: in expansion of macro 'FT_DRIVER_HAS_HINTER'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:991:11: note: in expansion of macro 'ft_strstr'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:991:11: note: in expansion of macro 'ft_strstr'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbase.c:26: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:36: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/base/ftfntfmt.c:33:7: note: in expansion of macro 'FT_FACE_FIND_SERVICE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftfntfmt.c:33:7: note: in expansion of macro 'FT_FACE_FIND_SERVICE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:991:11: note: in expansion of macro 'ft_strstr'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:991:11: note: in expansion of macro 'ft_strstr'
<built-in>: note: argument 1 of '__builtin_strstr' must be non-null
#  100|   #define ft_strncpy  strncpy
#  101|   #define ft_strrchr  strrchr
#  102|-> #define ft_strstr   strstr
#  103|   
#  104|   

Error: CPPCHECK_WARNING (CWE-758): [#def25]
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftcalc.h:202: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
#  200|   
#  201|       ret  = (long long)a * b;
#  202|->     tmp  = ret >> 63;
#  203|       ret += 0x8000 + tmp;
#  204|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:32: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:25: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/winfonts/winfnt.c:23: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/winfonts/winfnt.c: scope_hint: In function 'FNT_Face_Init'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:91:35: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/winfonts/winfnt.c:906:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:44:24: note: in definition of macro 'FT_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/src/winfonts/winfnt.c:290:10: note: in expansion of macro 'FT_STREAM_READ_FIELDS'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/freetype.h:25: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/ftwinfnt.h:22: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/winfonts/winfnt.c:21: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/fttypes.h:607:13: note: in expansion of macro 'FT_ERROR_BASE'
freetype-2.13.3-build/freetype-2.13.3/src/winfonts/winfnt.c:751:10: note: in expansion of macro 'FT_ERR_EQ'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/winfonts/winfnt.c:906:12: note: in expansion of macro 'FT_QALLOC'
#   89|   #else
#   90|   
#   91|-> #define FT_ASSIGNP( p, val )  (p) = (val)
#   92|   
#   93|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:156:50: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cursor'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:159:39: note: in definition of macro 'FT_UINT16'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:164:35: note: in expansion of macro 'FT_UINT16'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:164:46: note: in expansion of macro 'FT_BYTE_'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:186:41: note: in expansion of macro 'FT_BYTE_U16'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:245:26: note: in expansion of macro 'FT_PEEK_USHORT'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:793:17: note: in expansion of macro 'FT_NEXT_USHORT'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:292:24: note: in expansion of macro 'FT_OFFSET'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:159:39: note: in definition of macro 'FT_UINT16'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:164:35: note: in expansion of macro 'FT_UINT16'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:164:46: note: in expansion of macro 'FT_BYTE_'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:186:41: note: in expansion of macro 'FT_BYTE_U16'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:245:26: note: in expansion of macro 'FT_PEEK_USHORT'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:793:17: note: in expansion of macro 'FT_NEXT_USHORT'
#  154|      */
#  155|   
#  156|-> #define FT_BYTE_( p, i )  ( ((const FT_Byte*)(p))[(i)] )
#  157|   
#  158|   #define FT_INT16( x )   ( (FT_Int16)(x)  )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftmac.c:71: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbase.c:30: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:239:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'cursor'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:787:17: note: in expansion of macro 'FT_NEXT_BYTE'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:183:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:325:29: note: in expansion of macro 'FT_MEM_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:275:12: note: in expansion of macro 'FT_QALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:292:24: note: in expansion of macro 'FT_OFFSET'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstream.c:787:17: note: in expansion of macro 'FT_NEXT_BYTE'
#  237|   
#  238|   #define FT_NEXT_BYTE( buffer )         \
#  239|->           ( (unsigned char)*buffer++ )
#  240|   
#  241|   #define FT_NEXT_SHORT( buffer )                        \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c: scope_hint: In function 'FT_Bitmap_Convert'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:584:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tt'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:23: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:91:34: note: in definition of macro 'FT_PIX_FLOOR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:32: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:932:12: note: in expansion of macro 'FT_ALLOC'
#  582|   
#  583|   
#  584|->             tt[0] = (FT_Byte)( ( val & 0x80 ) >> 7 );
#  585|               tt[1] = (FT_Byte)( ( val & 0x40 ) >> 6 );
#  586|               tt[2] = (FT_Byte)( ( val & 0x20 ) >> 5 );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:606:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tt'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:91:34: note: in definition of macro 'FT_PIX_FLOOR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:932:12: note: in expansion of macro 'FT_ALLOC'
#  604|               for ( ; j > 0; j-- )
#  605|               {
#  606|->               tt[0] = (FT_Byte)( ( val & 0x80 ) >> 7);
#  607|                 val <<= 1;
#  608|                 tt   += 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:660:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tt'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:91:34: note: in definition of macro 'FT_PIX_FLOOR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:932:12: note: in expansion of macro 'FT_ALLOC'
#  658|   
#  659|   
#  660|->             tt[0] = (FT_Byte)( ( val & 0xC0 ) >> 6 );
#  661|               tt[1] = (FT_Byte)( ( val & 0x30 ) >> 4 );
#  662|               tt[2] = (FT_Byte)( ( val & 0x0C ) >> 2 );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:677:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tt'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:91:34: note: in definition of macro 'FT_PIX_FLOOR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:932:12: note: in expansion of macro 'FT_ALLOC'
#  675|               for ( ; j > 0; j-- )
#  676|               {
#  677|->               tt[0]  = (FT_Byte)( ( val & 0xC0 ) >> 6 );
#  678|                 val  <<= 2;
#  679|                 tt    += 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:710:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tt'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:91:34: note: in definition of macro 'FT_PIX_FLOOR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:932:12: note: in expansion of macro 'FT_ALLOC'
#  708|   
#  709|   
#  710|->             tt[0] = (FT_Byte)( ( val & 0xF0 ) >> 4 );
#  711|               tt[1] = (FT_Byte)( ( val & 0x0F ) );
#  712|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:718:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tt'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:91:34: note: in definition of macro 'FT_PIX_FLOOR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:932:12: note: in expansion of macro 'FT_ALLOC'
#  716|   
#  717|             if ( source->width & 1 )
#  718|->             tt[0] = (FT_Byte)( ( ss[0] & 0xF0 ) >> 4 );
#  719|   
#  720|             s += source->pitch;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:743:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'tt'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:91:34: note: in definition of macro 'FT_PIX_FLOOR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbitmap.c:932:12: note: in expansion of macro 'FT_ALLOC'
#  741|             for ( j = source->width; j > 0; j-- )
#  742|             {
#  743|->             tt[0] = ft_gray_for_premultiplied_srgb_bgra( ss );
#  744|   
#  745|               ss += 4;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbase.c:31: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c: scope_hint: In function 'ft_glyphslot_preset_bitmap'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:397:40: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbase.c:21: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/builds/unix/ftconfig.h:47: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftdebug.h:29: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/base/ftadvanc.c:19: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/public-macros.h:129:50: note: in definition of macro 'FT_STATIC_CAST'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:1161:30: note: in expansion of macro 'FT_LOAD_TARGET_MODE'
#  395|   
#  396|         module      = FT_Get_Module( slot->library, "ot-svg" );
#  397|->       svg_service = (SVG_Service)module->clazz->module_interface;
#  398|   
#  399|         return (FT_Bool)svg_service->preset_slot( module, slot, FALSE );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c: scope_hint: In function 'FT_New_GlyphSlot'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:697:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/public-macros.h:129:50: note: in definition of macro 'FT_STATIC_CAST'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:1161:30: note: in expansion of macro 'FT_LOAD_TARGET_MODE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftadvanc.c:22: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:603:31: note: in expansion of macro 'FT_FACE_DRIVER'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:5009:15: note: in expansion of macro 'FT_FACE_LIBRARY'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:32: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:695:11: note: in expansion of macro 'FT_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftbase.c:38: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:231:38: note: in definition of macro 'FT_MEM_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:113:37: note: in expansion of macro 'FT_ASSIGNP'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:161:11: note: in expansion of macro 'FT_ASSIGNP_INNER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:312:29: note: in expansion of macro 'FT_MEM_ALLOC'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftobjs.c:695:11: note: in expansion of macro 'FT_ALLOC'
#  695|       if ( !FT_ALLOC( slot, clazz->slot_object_size ) )
#  696|       {
#  697|->       slot->face = face;
#  698|   
#  699|         error = ft_glyphslot_init( slot );

Error: GCC_ANALYZER_WARNING (CWE-127): [#def38]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c: scope_hint: In function 'ft_cubic_is_small_enough'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:208:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:208:19: note: valid subscripts for 'bez_stack' are '[0]' to '[36]'
#  206|   
#  207|   
#  208|->     d1.x = base[2].x - base[3].x;
#  209|       d1.y = base[2].y - base[3].y;
#  210|       d2.x = base[1].x - base[2].x;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def39]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:209:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:209:19: note: valid subscripts for 'bez_stack' are '[0]' to '[36]'
#  207|   
#  208|       d1.x = base[2].x - base[3].x;
#  209|->     d1.y = base[2].y - base[3].y;
#  210|       d2.x = base[1].x - base[2].x;
#  211|       d2.y = base[1].y - base[2].y;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def40]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:210:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:210:19: note: valid subscripts for 'bez_stack' are '[0]' to '[36]'
#  208|       d1.x = base[2].x - base[3].x;
#  209|       d1.y = base[2].y - base[3].y;
#  210|->     d2.x = base[1].x - base[2].x;
#  211|       d2.y = base[1].y - base[2].y;
#  212|       d3.x = base[0].x - base[1].x;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def41]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:211:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:211:19: note: valid subscripts for 'bez_stack' are '[0]' to '[36]'
#  209|       d1.y = base[2].y - base[3].y;
#  210|       d2.x = base[1].x - base[2].x;
#  211|->     d2.y = base[1].y - base[2].y;
#  212|       d3.x = base[0].x - base[1].x;
#  213|       d3.y = base[0].y - base[1].y;

Error: GCC_ANALYZER_WARNING (CWE-127): [#def42]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:212:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:212:19: note: valid subscripts for 'bez_stack' are '[0]' to '[36]'
#  210|       d2.x = base[1].x - base[2].x;
#  211|       d2.y = base[1].y - base[2].y;
#  212|->     d3.x = base[0].x - base[1].x;
#  213|       d3.y = base[0].y - base[1].y;
#  214|   

Error: GCC_ANALYZER_WARNING (CWE-127): [#def43]
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:213:19: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:1656:20: note: in expansion of macro 'FT_SIDE_TO_ROTATE'
freetype-2.13.3-build/freetype-2.13.3/src/base/ftstroke.c:213:19: note: valid subscripts for 'bez_stack' are '[0]' to '[36]'
#  211|       d2.y = base[1].y - base[2].y;
#  212|       d3.x = base[0].x - base[1].x;
#  213|->     d3.y = base[0].y - base[1].y;
#  214|   
#  215|       close1 = FT_IS_SMALL( d1.x ) && FT_IS_SMALL( d1.y );

Error: GCC_ANALYZER_WARNING (CWE-126): [#def44]
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdf.c:30: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c: scope_hint: In function 'bdf_add_property_'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:180:20: warning[-Wanalyzer-out-of-bounds]: buffer over-read
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1226:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1781:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1781:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1226:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1226:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1226:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:180:20: note: read of 1 byte from after the end of '"FONT_ASCENT"'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1226:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:180:20: note: valid subscripts for '"FONT_ASCENT"' are '[0]' to '[11]'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1226:10: note: in expansion of macro '_bdf_strncmp'
#  178|   #define _bdf_strncmp( name, property, n )      \
#  179|             ( ft_strncmp( name, property, n ) || \
#  180|->             !( name[n] == ' '  ||              \
#  181|                  name[n] == '\0' ||              \
#  182|                  name[n] == '\n' ||              \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c: scope_hint: In function 'bdf_parse_start_'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1972:36: warning[-Wanalyzer-null-dereference]: dereference of NULL '((bdf_parse_t_)*(void *)client_data).font'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:179:13: note: in expansion of macro 'ft_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1889:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:179:13: note: in expansion of macro 'ft_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1957:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1957:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1957:10: note: in expansion of macro '_bdf_strncmp'
# 1970|   
# 1971|         /* at this point, `p->font' can't be NULL */
# 1972|->       p->cnt = p->font->props_size = bdf_atoul_( p->list.field[1] );
# 1973|         /* We need at least 4 bytes per property. */
# 1974|         if ( p->cnt > p->size / 4 )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:2075:29: warning[-Wanalyzer-null-dereference]: dereference of NULL '((bdf_parse_t_)*(void *)client_data).font'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:179:13: note: in expansion of macro 'ft_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1889:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:179:13: note: in expansion of macro 'ft_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1957:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:2061:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:2061:10: note: in expansion of macro '_bdf_strncmp'
# 2073|           goto Exit;
# 2074|   
# 2075|->       p->font->point_size   = bdf_atoul_( p->list.field[1] );
# 2076|         p->font->resolution_x = bdf_atoul_( p->list.field[2] );
# 2077|         p->font->resolution_y = bdf_atoul_( p->list.field[3] );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:2124:28: warning[-Wanalyzer-null-dereference]: dereference of NULL '((bdf_parse_t_)*(void *)client_data).font'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:179:13: note: in expansion of macro 'ft_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1889:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:179:13: note: in expansion of macro 'ft_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:1957:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:2109:10: note: in expansion of macro '_bdf_strncmp'
freetype-2.13.3-build/freetype-2.13.3/src/bdf/bdflib.c:2109:10: note: in expansion of macro '_bdf_strncmp'
# 2122|         /* Add the two standard X11 properties which are required */
# 2123|         /* for compiling fonts.                                   */
# 2124|->       p->font->font_ascent = p->font->bbx.ascent;
# 2125|         ft_snprintf( nbuf, BUFSIZE, "%hd", p->font->bbx.ascent );
# 2126|         error = bdf_add_property_( p->font, "FONT_ASCENT",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcache.c:26: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c: scope_hint: In function 'FTC_Manager_LookupSize.part.0'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:189:40: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mrunode'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.h:67: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcglyph.h:119: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcbasic.c:22: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcache.c:21: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:181:5: note: in expansion of macro 'FTC_MRULIST_LOOKUP_CMP'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcache.c:27: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:181:5: note: in expansion of macro 'FTC_MRULIST_LOOKUP_CMP'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:189:16: note: in expansion of macro 'FTC_SIZE_NODE'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:189:16: note: in expansion of macro 'FTC_SIZE_NODE'
#  187|   
#  188|       if ( !error )
#  189|->       *asize = FTC_SIZE_NODE( mrunode )->size;
#  190|   
#  191|       return error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c: scope_hint: In function 'FTC_Manager_LookupFace'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:318:40: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mrunode'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:310:5: note: in expansion of macro 'FTC_MRULIST_LOOKUP_CMP'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:310:5: note: in expansion of macro 'FTC_MRULIST_LOOKUP_CMP'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:310:5: note: in expansion of macro 'FTC_MRULIST_LOOKUP_CMP'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:318:16: note: in expansion of macro 'FTC_FACE_NODE'
freetype-2.13.3-build/freetype-2.13.3/src/cache/ftcmanag.c:318:16: note: in expansion of macro 'FTC_FACE_NODE'
#  316|   
#  317|       if ( !error )
#  318|->       *aface = FTC_FACE_NODE( mrunode )->face;
#  319|   
#  320|       return error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
freetype-2.13.3-build/freetype-2.13.3/src/cid/type1cid.c:22: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c: scope_hint: In function 'cid_read_subrs'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:564:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'offsets'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:32: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:25: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.h:23: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidgload.c:19: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/cid/type1cid.c:21: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:44:24: note: in definition of macro 'FT_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:558:12: note: in expansion of macro 'FT_STREAM_SEEK'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:44:24: note: in definition of macro 'FT_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:548:13: note: in expansion of macro 'FT_DEBUG_INNER'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:559:12: note: in expansion of macro 'FT_FRAME_ENTER'
#  562|         p = (FT_Byte*)stream->cursor;
#  563|         for ( count = 0; count <= num_subrs; count++ )
#  564|->         offsets[count] = cid_get_offset( &p, dict->sd_bytes );
#  565|   
#  566|         FT_FRAME_EXIT();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:570:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'offsets'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:44:24: note: in definition of macro 'FT_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:558:12: note: in expansion of macro 'FT_STREAM_SEEK'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:44:24: note: in definition of macro 'FT_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:548:13: note: in expansion of macro 'FT_DEBUG_INNER'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:559:12: note: in expansion of macro 'FT_FRAME_ENTER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:112:38: note: in definition of macro 'FT_DEBUG_INNER'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:566:7: note: in expansion of macro 'FT_FRAME_EXIT'
#  568|         /* offsets must be ordered */
#  569|         for ( count = 1; count <= num_subrs; count++ )
#  570|->         if ( offsets[count - 1] > offsets[count] )
#  571|           {
#  572|             FT_ERROR(( "cid_read_subrs: offsets are not ordered\n" ));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:586:46: warning[-Wanalyzer-null-dereference]: dereference of NULL 'offsets'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:44:24: note: in definition of macro 'FT_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:558:12: note: in expansion of macro 'FT_STREAM_SEEK'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:44:24: note: in definition of macro 'FT_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:548:13: note: in expansion of macro 'FT_DEBUG_INNER'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:559:12: note: in expansion of macro 'FT_FRAME_ENTER'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:112:38: note: in definition of macro 'FT_DEBUG_INNER'
freetype-2.13.3-build/freetype-2.13.3/src/cid/cidload.c:566:7: note: in expansion of macro 'FT_FRAME_EXIT'
#  584|         /* now, compute the size of subrs charstrings, */
#  585|         /* allocate, and read them                     */
#  586|->       data_len = offsets[num_subrs] - offsets[0];
#  587|   
#  588|         if ( FT_QNEW_ARRAY( subr->code, num_subrs + 1 ) ||

Error: GCC_ANALYZER_WARNING (CWE-457): [#def53]
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvbsln.c:29: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvalid.c:22: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvprop.c: scope_hint: In function 'gxv_prop_property_validate'
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvcommn.h:268:56: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*(struct GXV_prop_DataRec_ *)gxvalid_34(D)->table_data.version'
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvprop.c:59:33: note: in expansion of macro 'GXV_TABLE_DATA'
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvprop.c:162:12: note: in expansion of macro 'GXV_PROP_DATA'
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvalid.c:42: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvprop.c:59:33: note: in expansion of macro 'GXV_TABLE_DATA'
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvprop.c:162:12: note: in expansion of macro 'GXV_PROP_DATA'
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvprop.c:59:33: note: in expansion of macro 'GXV_TABLE_DATA'
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvprop.c:162:12: note: in expansion of macro 'GXV_PROP_DATA'
#  266|   
#  267|   #define GXV_TABLE_DATA( tag, field )                             \
#  268|->         ( ( (GXV_ ## tag ## _Data)gxvalid->table_data )->field )
#  269|   
#  270|   #undef  FT_INVALID_

Error: CPPCHECK_WARNING (CWE-457): [#def54]
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvmort1.c:252: error[uninitvar]: Uninitialized variable: st_rec.substitutionTable
#  250|   
#  251|       gxv_mort_subtable_type1_substTable_validate(
#  252|->       table + st_rec.substitutionTable,
#  253|         table + st_rec.substitutionTable + st_rec.substitutionTable_length,
#  254|         gxvalid );

Error: CPPCHECK_WARNING (CWE-457): [#def55]
freetype-2.13.3-build/freetype-2.13.3/src/gxvalid/gxvmorx1.c:270: error[uninitvar]: Uninitialized variable: st_rec.substitutionTable
#  268|   
#  269|       gxv_morx_subtable_type1_substitutionTable_validate(
#  270|->       table + st_rec.substitutionTable,
#  271|         table + st_rec.substitutionTable + st_rec.substitutionTable_length,
#  272|         gxvalid );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
freetype-2.13.3-build/freetype-2.13.3/src/pcf/pcf.c:31: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/pcf/pcfread.c: scope_hint: In function 'pcf_seek_to_table_type'
freetype-2.13.3-build/freetype-2.13.3/src/pcf/pcfread.c:384:21: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:32: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:25: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/pcf/pcfdrivr.c:30: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/pcf/pcf.c:30: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:44:24: note: in definition of macro 'FT_SET_ERROR'
freetype-2.13.3-build/freetype-2.13.3/src/pcf/pcfread.c:108:10: note: in expansion of macro 'FT_STREAM_READ_FIELDS'
#  382|   
#  383|       for ( i = 0; i < ntables; i++ )
#  384|->       if ( tables[i].type == type )
#  385|         {
#  386|           if ( stream->pos > tables[i].offset )

Error: CPPCHECK_WARNING (CWE-457): [#def57]
freetype-2.13.3-build/freetype-2.13.3/src/raster/ftraster.c:1926: warning[uninitvar]: Uninitialized variable: *old
# 1924|       /* First, set the new X coordinates and remove exhausted profiles */
# 1925|       old = list;
# 1926|->     while ( *old )
# 1927|       {
# 1928|         current = *old;

Error: CPPCHECK_WARNING (CWE-457): [#def58]
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:604: warning[uninitvar]: Uninitialized variable: *pcell
#  602|         while ( 1 )
#  603|         {
#  604|->         cell = *pcell;
#  605|   
#  606|           if ( cell->x > ex )

Error: COMPILER_WARNING: [#def59]
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:1879:26: warning[-Wdangling-pointer=]: storing the address of local variable 'buffer' in 'worker_52(D)->cell_null'
# 1879 |     ras.cell_null        = buffer + FT_MAX_GRAY_POOL - 1;
#      |                          ^
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:1868:14: note: 'buffer' declared here
# 1868 |     TCell    buffer[FT_MAX_GRAY_POOL];
#      |              ^~~~~~
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:316:33: note: 'worker' declared here
#  316 | #define RAS_ARG   gray_PWorker  worker
#      |                   ~~~~~~~~~~~~~~^~~~~~
# 1877|   
# 1878|       /* Initialize the null cell at the end of the poll. */
# 1879|->     ras.cell_null        = buffer + FT_MAX_GRAY_POOL - 1;
# 1880|       ras.cell_null->x     = CELL_MAX_X_VALUE;
# 1881|       ras.cell_null->area  = 0;

Error: COMPILER_WARNING: [#def60]
freetype-2.13.3-build/freetype-2.13.3/src/smooth/smooth.c:21: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c: scope_hint: In function 'gray_convert_glyph'
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:1886:20: warning[-Wdangling-pointer=]: storing the address of local variable 'buffer' in 'worker_71(D)->ycells'
# 1886 |     ras.ycells     = (PCell*)buffer;
#      |                    ^
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:1868:14: note: 'buffer' declared here
# 1868 |     TCell    buffer[FT_MAX_GRAY_POOL];
#      |              ^~~~~~
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:316:33: note: 'worker' declared here
#  316 | #define RAS_ARG   gray_PWorker  worker
#      |                   ~~~~~~~~~~~~~~^~~~~~
# 1884|   
# 1885|       /* set up vertical bands */
# 1886|->     ras.ycells     = (PCell*)buffer;
# 1887|   
# 1888|       if ( height > n )

Error: GCC_ANALYZER_WARNING (CWE-127): [#def61]
freetype-2.13.3-build/freetype-2.13.3/src/smooth/smooth.c:21: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c: scope_hint: In function 'gray_convert_glyph'
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:1914:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
freetype-2.13.3-build/freetype-2.13.3/include/freetype/config/ftstdlib.h:166: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/builds/unix/ftconfig.h:41: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:282: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:1706:10: note: in expansion of macro 'ft_setjmp'
freetype-2.13.3-build/freetype-2.13.3/src/smooth/ftgrays.c:1914:26: note: valid subscripts for 'bands' are '[0]' to '[31]'
# 1912|   
# 1913|           ras.min_ex = band[1];
# 1914|->         ras.max_ex = band[0];
# 1915|   
# 1916|           /* memory management: zero out and skip ycells */

Error: CPPCHECK_WARNING (CWE-562): [#def62]
freetype-2.13.3-build/freetype-2.13.3/src/tools/apinames.c:213: error[invalidLifetime]: Using pointer to local variable 'temp' that is out of scope.
#  211|         for ( nn = 0; nn < num_names; nn++ )
#  212|           fprintf( out, "++_%s.%s.%s\n",
#  213|->                       the_names[nn].name, dll_name, the_names[nn].name );
#  214|       }
#  215|   

Error: CPPCHECK_WARNING (CWE-562): [#def63]
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttgload.c:1506: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 1504|                               glyph_data.length );
# 1505|   
# 1506|->       loader->stream = &inc_stream;
# 1507|       }
# 1508|       else

Error: COMPILER_WARNING: [#def64]
freetype-2.13.3-build/freetype-2.13.3/src/truetype/truetype.c:22: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttgload.c: scope_hint: In function 'load_truetype_glyph'
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttgload.c:1506:22: warning[-Wdangling-pointer=]: storing the address of local variable 'inc_stream' in 'loader_325(D)->stream'
# 1506 |       loader->stream = &inc_stream;
#      |       ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttgload.c:1439:21: note: 'inc_stream' declared here
# 1439 |     FT_StreamRec    inc_stream;
#      |                     ^~~~~~~~~~
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttgload.c:1425:35: note: 'loader' declared here
# 1425 |   load_truetype_glyph( TT_Loader  loader,
#      |                        ~~~~~~~~~~~^~~~~~
# 1504|                               glyph_data.length );
# 1505|   
# 1506|->       loader->stream = &inc_stream;
# 1507|       }
# 1508|       else

Error: CPPCHECK_WARNING (CWE-758): [#def65]
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c:1243: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1241|       /* will actually preserve the sign bit.  The exact behaviour is    */
# 1242|       /* undefined, but this is true on x86 and x86_64.                  */
# 1243|->     long long  tmp = ret >> 63;
# 1244|   
# 1245|   

Error: CPPCHECK_WARNING (CWE-758): [#def66]
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c:1323: error[shiftTooManyBitsSigned]: Shifting signed 64-bit value by 63 bits is undefined behaviour
# 1321|   
# 1322|       temp1 += temp2;
# 1323|->     temp2  = temp1 >> 63;
# 1324|       temp1 += 0x2000 + temp2;
# 1325|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
freetype-2.13.3-build/freetype-2.13.3/src/truetype/truetype.c:24: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c: scope_hint: In function 'Ins_FDEF'
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c:3543:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rec'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftobjs.h:32: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftstream.h:25: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttdriver.c:20: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/truetype/truetype.c:21: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c:3515:13: note: in expansion of macro 'FT_OFFSET'
# 3541|       }
# 3542|   
# 3543|->     rec->range          = exc->curRange;
# 3544|       rec->opc            = (FT_UInt16)n;
# 3545|       rec->start          = exc->IP + 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c: scope_hint: In function 'Ins_LOOPCALL'
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c:3727:50: warning[-Wanalyzer-null-dereference]: dereference of NULL 'def'
freetype-2.13.3-build/freetype-2.13.3/include/freetype/internal/ftmemory.h:66:38: note: in definition of macro 'FT_OFFSET'
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c:3726:11: note: in expansion of macro 'FT_OFFSET'
# 3725|   
# 3726|       def = FT_OFFSET( exc->FDefs, F );
# 3727|->     if ( exc->maxFunc + 1 != exc->numFDefs || def->opc != F )
# 3728|       {
# 3729|         /* look up the FDefs table */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c: scope_hint: In function 'Ins_IDEF'
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c:3829:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'def'
freetype-2.13.3-build/freetype-2.13.3/src/truetype/ttinterp.c:3805:13: note: in expansion of macro 'FT_OFFSET'
# 3827|       }
# 3828|   
# 3829|->     def->opc    = (FT_Byte)args[0];
# 3830|       def->start  = exc->IP + 1;
# 3831|       def->range  = exc->curRange;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
freetype-2.13.3-build/freetype-2.13.3/src/type1/type1.c:24: included_from: Included from here.
freetype-2.13.3-build/freetype-2.13.3/src/type1/t1load.c: scope_hint: In function 't1_set_mm_blend'
freetype-2.13.3-build/freetype-2.13.3/src/type1/t1load.c:416:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'coords'
freetype-2.13.3-build/freetype-2.13.3/src/type1/t1load.c: scope_hint: In function 't1_set_mm_blend'
#  414|   
#  415|           /* get current blend axis position */
#  416|->         factor = coords[m];
#  417|           if ( ( n & ( 1 << m ) ) == 0 )
#  418|             factor = 0x10000L - factor;

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-221.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namefreetype-2.13.3-1.fc42
store-results-to/tmp/tmpv_yw7b6o/freetype-2.13.3-1.fc42.tar.xz
time-created2024-11-13 00:02:52
time-finished2024-11-13 00:06:14
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpv_yw7b6o/freetype-2.13.3-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpv_yw7b6o/freetype-2.13.3-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9