Task #130908 - added.err

back to task #130908
download
Error: COMPILER_WARNING (CWE-704):
fontconfig-2.18.2/src/fcfreetype.c: scope_hint: In function ‘FcFreeTypeQueryFaceInternal’
fontconfig-2.18.2/src/fcfreetype.c:1723:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1723 |         canon_file = file;
#      |                    ^
# 1721|   	canon_file = FcStrCanonFilename (file);
# 1722|       else
# 1723|-> 	canon_file = file;
# 1724|       if (canon_file && *canon_file && !FcPatternObjectAddString (pat, FC_FILE_OBJECT, canon_file))
# 1725|   	goto bail1;

Error: COMPILER_WARNING (CWE-704):
fontconfig-2.18.2/src/fcfreetype.c:1723:20: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1721|   	canon_file = FcStrCanonFilename (file);
# 1722|       else
# 1723|-> 	canon_file = file;
# 1724|       if (canon_file && *canon_file && !FcPatternObjectAddString (pat, FC_FILE_OBJECT, canon_file))
# 1725|   	goto bail1;

Error: COMPILER_WARNING:
fontconfig-2.18.2/src/fccharset.c:25: included_from: Included from here.
fontconfig-2.18.2/src/fccharset.c: scope_hint: In function ‘FcCharSetPutLeaf’
fontconfig-2.18.2/src/fcint.h:172:47: warning[-Wuse-after-free]: pointer ‘leaves_109’ may be used after ‘realloc’
#  172 | #define FcOffsetToPtr(b, o, t)         ((t *)((uintptr_t)(b) + (ptrdiff_t)(o)))
#      |                                               ^~~~~~~~~~~~~~
fontconfig-2.18.2/src/fccharset.c:177:26: note: call to ‘realloc’ here
#  177 |             new_leaves = realloc (leaves, alloced * sizeof (*leaves));
#      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  170|   
#  171|   /* Given base address, offset and type, return a pointer */
#  172|-> #define FcOffsetToPtr(b, o, t)         ((t *)((uintptr_t)(b) + (ptrdiff_t)(o)))
#  173|   
#  174|   /* Given base address, encoded offset and type, return a pointer */