[MDEV-21297] storage/connect/reldef.cpp compilation fails in debug mode Created: 2019-12-12 Updated: 2021-05-06 Resolved: 2021-05-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.2, 10.3 |
| Fix Version/s: | 10.2.39, 10.3.30 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexey Bychko (Inactive) | Assignee: | Timofey Turenko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Werror | ||
| Environment: |
ubuntu-1604 docker |
||
| Attachments: |
|
| Description |
|
|
| Comments |
| Comment by Alexander Barkov [ 2019-12-12 ] | |||||
|
Hi bertrandop, In the MariaDB code we avoid using strcat()/strncat(), as they are slow and unsafe. Please use strxnmov() or my_snprintf() instead.
| |||||
| Comment by Olivier Bertrand [ 2019-12-12 ] | |||||
|
Apparently the compilation only failed in this particular example because all warnings were treated as errors. Nowhere else did this occured, for instance on buildbot. I 'd be glad to get rid of strcat, strncat, especially strncat that is cumbersome to use. The problem is that the CONNECT code contains about three hundred use of these functions. To fix all these without the risk of making potential errors that would make CONNECT unstable will require more than just doing manually these changes. Any idea? | |||||
| Comment by Alexey Bychko (Inactive) [ 2019-12-12 ] | |||||
yes, it may be disabled with -DMYSQL_MAINTAINER_MODE=OFF, which is current workaround | |||||
| Comment by Julien Fritsch [ 2020-01-02 ] | |||||
|
What is the status of this one, please? | |||||
| Comment by Olivier Bertrand [ 2020-01-02 ] | |||||
|
Will be progressively done in long term. Don't expect miracles. |