Closed Bug 1245464 Opened 4 years ago Closed 4 years ago

[Static Analysis][Uninitialized scalar field] In function xpcAccessibleGeneric(ProxyAccessible* aProxy, uint32_t aInterfaces)

Categories

(Core :: Disability Access APIs, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: andi, Assigned: andi)

References

(Blocks 1 open bug)

Details

(Keywords: coverity, Whiteboard: CID 1351151 )

Attachments

(1 file)

The Static Analysis tool Coverity added that variable mSupportedIfaces is not initialized, being not initialized the bit-wise operations that are done on it result in undetermined values.

>>    if (aInterfaces & Interfaces::SELECTION) {
>>      mSupportedIfaces |= eSelectable;
>>    }
>>      if (aInterfaces & Interfaces::VALUE) {
>>        mSupportedIfaces |= eValue;
>>      }
>>      if (aInterfaces & Interfaces::HYPERLINK) {
>>        mSupportedIfaces |= eHyperLink;
>>      }
>>    }
Attachment #8715260 - Flags: review?(surkov.alexander) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/919e78b18b3d
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.