Closed Bug 1839750 Opened 2 years ago Closed 2 years ago

[deb12] /builds/worker/fetches/winchecksec/pe-parse/pe-parser-library/src/buffer.cpp:187:9: error: dangling pointer ‘tmp’ to ‘tmpBuf’ may be used [-Werror=dangling-pointer=]

Categories

(Firefox Build System :: Toolchains, defect, P5)

defect

Tracking

(firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: glandium)

References

Details

Attachments

(1 file)

Filed by: mh [at] glandium.org
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=420087737&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OPfgummcQzah-H3qSOOcVw/runs/0/artifacts/public/logs/live_backing.log


[task 2023-06-21T02:03:49.147Z] /builds/worker/fetches/winchecksec/pe-parse/pe-parser-library/src/buffer.cpp:187:9: error: dangling pointer ‘tmp’ to ‘tmpBuf’ may be used [-Werror=dangling-pointer=]
[task 2023-06-21T02:03:49.147Z]   187 |   out = *tmp;
[task 2023-06-21T02:03:49.147Z]       |         ^~~~
[task 2023-06-21T02:03:49.147Z] /builds/worker/fetches/winchecksec/pe-parse/pe-parser-library/src/buffer.cpp:180:18: note: ‘tmpBuf’ declared here
[task 2023-06-21T02:03:49.147Z]   180 |     std::uint8_t tmpBuf[2];
[task 2023-06-21T02:03:49.147Z]       |                  ^~~~~~
[task 2023-06-21T02:03:52.614Z] /builds/worker/fetches/winchecksec/pe-parse/pe-parser-library/src/parse.cpp:1751:24: error: unsigned conversion from ‘int’ to ‘uint16_t’ {aka ‘short unsigned int’} changes the value of ‘-61441’ [-Werror=sign-conversion]
[task 2023-06-21T02:03:52.614Z]  1751 |         offset = entry & ~0xf000;
[task 2023-06-21T02:03:52.614Z]       |                  ~~~~~~^~~~~~~~~
Blocks: 1839749

We could upgrade winchecksec, but newer versions of the code unfortunately
require vcpkg.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/9d5dcd3fb958 Apply winchecksec upstream patches to fix errors compiling with newer versions of GCC. r=firefox-build-system-reviewers,ahochheiden
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: