Closed Bug 1711838 Opened 3 years ago Closed 3 years ago

[gcc 11] error: '%s' directive argument is null [-Werror=format-overflow=]

Categories

(Core :: mozglue, 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:27.649Z] 04:16:27     INFO -  In file included from /builds/worker/fetches/sysroot/usr/include/stdio.h:937,
[task 2021-05-19T04:16:27.649Z] 04:16:27     INFO -                   from /builds/worker/workspace/obj-build/dist/system_wrappers/stdio.h:3,
[task 2021-05-19T04:16:27.649Z] 04:16:27     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/StackWalk.h:14,
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:24,
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/AllocPolicy.h:16,
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -                   from /builds/worker/workspace/obj-build/dist/include/mozilla/Printf.h:55,
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -                   from /builds/worker/checkouts/gecko/mozglue/tests/TestPrintf.cpp:7:
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -  In function 'int fprintf(FILE*, const char*, ...)',
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -      inlined from 'bool check_print(const char*, int, bool (*)(const char*, const char*), const char*, const char*, ...)' at /builds/worker/checkouts/gecko/mozglue/tests/TestPrintf.cpp:80:12:
[task 2021-05-19T04:16:27.650Z] 04:16:27    ERROR -  /builds/worker/fetches/sysroot/usr/include/x86_64-linux-gnu/bits/stdio2.h:97:24: error: '%s' directive argument is null [-Werror=format-overflow=]
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -     97 |   return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -        |          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[task 2021-05-19T04:16:27.650Z] 04:16:27     INFO -     98 |                         __va_arg_pack ());
[task 2021-05-19T04:16:27.651Z] 04:16:27     INFO -        |                         ~~~~~~~~~~~~~~~~~
[task 2021-05-19T04:16:27.666Z] 04:16:27     INFO -  cc1plus: all warnings being treated as errors
Blocks: build-gcc-11
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/0f95b069a556
Avoid GCC warning about %s argument possibly being null. r=gsvelto
Status: NEW → 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: