Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.5.26, 10.6.19, 10.11.9, 11.1.6, 11.2.5, 11.4.3, 11.5.2, 11.6.1
Description
MDEV-34266 removed a #pragma that would silence a GCC warning about possible missing NUL terminator when invoking strncpy(). It looks like the warning depends on some optimization settings.
Initially I thought that the warning got smarter in GCC 14, which was recently made the default compiler in Debian Sid, but I found examples of the warnings in the build logs also with GCC 12.2.0.
Attachments
Issue Links
- is caused by
-
MDEV-34266 safe_strcpy() includes an unnecessary conditional branch
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Description |
|
Initially I thought that the warning got smarter in GCC 14, which was recently made the default compiler in Debian Sid, but I found examples of the warnings in the build logs also with GCC 12.2.0. |
Summary | g++-14 -Wstringop-truncation due to safe_strcpy() | GCC -Wstringop-truncation due to safe_strcpy() |
issue.field.resolutiondate | 2024-08-14 06:52:58.0 | 2024-08-14 06:52:58.257 |
Fix Version/s | 11.6.1 [ 29847 ] | |
Fix Version/s | 10.5.27 [ 29902 ] | |
Fix Version/s | 10.6.20 [ 29903 ] | |
Fix Version/s | 10.11.10 [ 29904 ] | |
Fix Version/s | 11.2.6 [ 29906 ] | |
Fix Version/s | 11.4.4 [ 29907 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.2 [ 28603 ] | |
Fix Version/s | 11.4 [ 29301 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |