The FreeType Project - Bugs: bug #58275, Compiler warnings when building...
You are not allowed to post comments on this tracker with your current authentication level.
bug #58275: Compiler warnings when building utilities in ft2demos
Submitter: | None | ||
Submitted: | Wed 29 Apr 2020 11:17:41 PM UTC | ||
Severity: | 3 - Normal | Item Group: | Incorrect behaviour |
Status: | Fixed | Privacy: | Public |
Assigned to: | freetype | Open/Closed: | Closed |
Planned Release: | 2.10.2 |
Mon 11 May 2020 02:40:19 AM UTC, comment #2: |
Alexei Podtelezhnikov <podtelez> |
Fri 01 May 2020 01:19:28 PM UTC, comment #1: Fixed in git, thanks. |
Werner LEMBERG <wl> |
Wed 29 Apr 2020 11:17:41 PM UTC, original submission:
Good afternoon,
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-05-01 | wl | Status | None | Fixed | |
Assigned to | None | freetype | |||
Open/Closed | Open | Closed | |||
Planned Release | None | 2.10.2 |
Powered by Savane 3.13-02a9.
Corresponding source code
strncat also generates -Wstringop-truncation warnings. It is numm-terminated so I do not understand why.
In function ‘Cur_U_Line’,
inlined from ‘RunIns’ at /home/apodtele/freetype2-demos/src/ttdebug.c:2105:11:
/home/apodtele/freetype2-demos/src/ttdebug.c:1756:7: warning: ‘strncat’ output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation]
1756 | strncat( tempStr, s, 31 );
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/apodtele/freetype2-demos/src/ttdebug.c:1750:9: warning: ‘strncat’ output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation]
1750 | strncat( tempStr, s, 8 );
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/apodtele/freetype2-demos/src/ttdebug.c:1727:9: warning: ‘strncat’ output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation]
1727 | strncat( tempStr, s, 8 );
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/apodtele/freetype2-demos/src/ttdebug.c:1691:7: warning: ‘strncat’ output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation]
1691 | strncat( tempStr, s, 8 );
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/apodtele/freetype2-demos/src/ttdebug.c:1713:9: warning: ‘strncat’ output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation]
1713 | strncat( tempStr, s, 8 );
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/apodtele/freetype2-demos/src/ttdebug.c:1671:7: warning: ‘strncat’ output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation]
1671 | strncat( tempStr, s, 8 );
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/apodtele/freetype2-demos/src/ttdebug.c:1684:9: warning: ‘strncat’ output may be truncated copying 8 bytes from a string of length 31 [-Wstringop-truncation]
1684 | strncat( tempStr, s, 8 );
| ^~~~~~~~~~~~~~~~~~~~~~~~