HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. "Read more...":https://support.plan.io/news/187
Bug #894423
closedgcc-11: stringop-overread at edithand.c strncmp() about scenario.authors
0%
Description
Compiling with gcc-11 development snapshot:
../../../src/server/edithand.c: In function 'handle_edit_game':
../../../src/server/edithand.c:1403:12: error: 'strncmp' specified bound 4096 exceeds source size 1365 [-Werror=stringop-overread]
1403 | if (0 != strncmp(packet->scenario_authors, game.scenario.authors,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1404 | MAX_LEN_PACKET)) {
| ~~~~~~~~~~~~~
Files
Updated by Marko Lindqvist over 2 years ago
- File 0012-Fix-gcc-11-stringop-overread-error-at-comparing-scen.patch 0012-Fix-gcc-11-stringop-overread-error-at-comparing-scen.patch added
- Status changed from New to Resolved
- Sprint/Milestone set to 2.6.3
Updated by Marko Lindqvist over 2 years ago
- File 0005-Fix-gcc-11-stringop-overread-error-at-comparing-scen.patch 0005-Fix-gcc-11-stringop-overread-error-at-comparing-scen.patch added
- Use size of only one of game.scenario.authors and packet->scenario_authors
- Added static assert that game.scenario.authors and packet->scenario_authors are same size
Updated by Marko Lindqvist over 2 years ago
- Status changed from Resolved to Closed
- Assignee set to Marko Lindqvist