Closed
Bug 1529105
Opened 5 years ago
Closed 5 years ago
Compile warning in OpenVRSession.cpp: the use of `tmpnam' is dangerous
Categories
(Core :: WebVR, defect)
Core
WebVR
Tracking
()
RESOLVED
FIXED
mozilla68
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: TYLin, Assigned: daoshengmu)
References
Details
Attachments
(1 file, 1 obsolete file)
The following warnings are shown after linking libxul.so.
0:09.42 toolkit/library/libxul.so
0:28.59 /home/tlin/Projects/gecko/gfx/vr/service/OpenVRSession.cpp:285: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
0:28.59 /home/tlin/Projects/gecko/gfx/vr/service/OpenVRSession.cpp:292: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
0:28.59 /home/tlin/Projects/gecko/gfx/vr/service/OpenVRSession.cpp:324: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
0:28.59 /home/tlin/Projects/gecko/gfx/vr/service/OpenVRSession.cpp:341: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
0:28.59 /home/tlin/Projects/gecko/gfx/vr/service/OpenVRSession.cpp:352: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
0:28.59 /home/tlin/Projects/gecko/gfx/vr/service/OpenVRSession.cpp:369: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
0:38.59 toolkit/library/dependentlibs.list.stub
FWIW, I compile on Linux using clang version clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
, and the following in my mozconfig.
ac_add_options --enable-debug
ac_add_options --disable-optimize
Reporter | ||
Comment 1•5 years ago
|
||
If it's intentional to use std::tmpnam(nullptr)
, maybe we should silence the warnings?
Assignee | ||
Comment 2•5 years ago
|
||
Thanks, TYLin.
I think we should replace std::tmpnam
with std::tmpnam_s
. I will work on this shortly.
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → dmu
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
we will target it to FF 68.
Comment 6•5 years ago
|
||
daoshengmu, the patch does not have any reviewers. Do you consider it finished?
Flags: needinfo?(dmu)
Assignee | ||
Comment 7•5 years ago
|
||
(In reply to Frederik Braun [:freddyb] from comment #6)
daoshengmu, the patch does not have any reviewers. Do you consider it finished?
I haven't done it yet but close. I will continue to work on this this week.
Flags: needinfo?(dmu)
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Attachment #9049043 -
Attachment is obsolete: true
Pushed by dmu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bb714fa13ef9 Replace tmpname in OpenVRSession when using action input. r=kip
Comment 10•5 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in
before you can comment on or make changes to this bug.
Description
•