Closed Bug 131390 Opened 22 years ago Closed 12 years ago

Unitialized variables in js/src/xpconnect/src

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hjtoi-bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I decided to take a look at these, and found one that actually is real. The
others seem to be just the compiler's inability to realize that they will never
be used uninitialized.
Attached patch Proposed fixSplinter Review
This is real if we jump through goto to done before initializing:

js/src/xpconnect/src/xpcwrappednative.cpp:1627
`uint8 paramCount' might be used uninitialized in this function

1625 const nsXPTMethodInfo* methodInfo;
1626 uint8 requiredArgs;
1627 uint8 paramCount;
1628 jsval src;
1629 nsresult invokeResult;

I fixed the other ones so that it will be easier to notice new errors.
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
This patch to remove warnings of unitialized variables still seems to be
relevant. Do we want to take it?
Assignee: general → nobody
QA Contact: gerardok → general
All variables named |paramCount| in js/xpconnect/src/XPCWrappedNative.cpp (as it's now called) are initialized at declaration time.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: