Closed Bug 1711837 Opened 3 years ago Closed 3 years ago

[gcc 11] error: '__builtin_strncpy' specified bound 8 equals destination size [-Werror=stringop-truncation]

Categories

(Toolkit :: Crash Reporting, defect)

defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

[task 2021-05-19T04:16:43.404Z] 04:16:43     INFO -  In file included from /builds/worker/fetches/sysroot/usr/include/string.h:640,
[task 2021-05-19T04:16:43.404Z] 04:16:43     INFO -                   from /builds/worker/workspace/obj-build/dist/system_wrappers/string.h:3,
[task 2021-05-19T04:16:43.404Z] 04:16:43     INFO -                   from /builds/worker/checkouts/gecko/toolkit/crashreporter/google-breakpad/src/third_party/libdisasm/ia32_insn.c:3,
[task 2021-05-19T04:16:43.404Z] 04:16:43     INFO -                   from Unified_c_src_processor0.c:11:
[task 2021-05-19T04:16:43.404Z] 04:16:43     INFO -  In function 'strncpy',
[task 2021-05-19T04:16:43.404Z] 04:16:43     INFO -      inlined from 'ia32_handle_register.part.0' at /builds/worker/checkouts/gecko/toolkit/crashreporter/google-breakpad/src/third_party/libdisasm/ia32_reg.c:207:9:
[task 2021-05-19T04:16:43.404Z] 04:16:43    ERROR -  /builds/worker/fetches/sysroot/usr/include/x86_64-linux-gnu/bits/string3.h:120:10: error: '__builtin_strncpy' specified bound 8 equals destination size [-Werror=stringop-truncation]
[task 2021-05-19T04:16:43.404Z] 04:16:43     INFO -    120 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
[task 2021-05-19T04:16:43.404Z] 04:16:43     INFO -        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2021-05-19T04:16:43.405Z] 04:16:43     INFO -  cc1: all warnings being treated as errors
Blocks: build-gcc-11
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/04e17064fb36 Disable stringop-truncation warnings in third party breakpad code. r=gsvelto,firefox-build-system-reviewers,andi,mhentges
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Blocks: 1714004
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: