Closed Bug 1824950 Opened 1 year ago Closed 1 year ago

coverity report: ScriptLoadContext.h Non-static class member "mColumnNo" is not initialized in this constructor nor in any functions that it calls

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

*** CID 1524505:  Uninitialized members  (UNINIT_CTOR)
/dom/script/ScriptLoadContext.cpp: 69 in mozilla::dom::ScriptLoadContext::ScriptLoadContext()()
63           mIsTracking(false),
64           mWasCompiledOMT(false),
65           mOffThreadToken(nullptr),
66           mRunnable(nullptr),
67           mLineNo(1),
68           mIsPreload(false),
>>>     CID 1524505:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mColumnNo" is not initialized in this constructor nor in any functions that it calls.
69           mUnreportedPreloadError(NS_OK) {}
70     
71     ScriptLoadContext::~ScriptLoadContext() {
72       MOZ_ASSERT(NS_IsMainThread());
73     
74       // Off-thread parsing must have completed by this point.

We have a different initialization story for this member (we should still fix this)

Severity: -- → S4
Priority: -- → P3
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e286a70419ce
Initialize ScriptLoadContext mColumnNo. r=mgaudet.
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: