Bug 1245464 - initialize with 0 mSupportedIfaces in xpcAccessibleGeneric in order to avoid corrupted result after bit-wise operation. r=surkov
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Wed, 03 Feb 2016 13:53:11 +0200
changeset 282912 919e78b18b3d008b27cb49f8bf71247725a2cf77
parent 282911 4d6130cb98a59fc191b60aef776c66b61f727450
child 282913 dc0b2ddbdbb4a0c019394f6579131cf4dd9667f1
push id29972
push usercbook@mozilla.com
push dateThu, 04 Feb 2016 11:02:19 +0000
treeherdermozilla-central@f53533d9eb77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssurkov
bugs1245464
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1245464 - initialize with 0 mSupportedIfaces in xpcAccessibleGeneric in order to avoid corrupted result after bit-wise operation. r=surkov
accessible/xpcom/xpcAccessibleGeneric.h
--- a/accessible/xpcom/xpcAccessibleGeneric.h
+++ b/accessible/xpcom/xpcAccessibleGeneric.h
@@ -34,17 +34,17 @@ public:
       mSupportedIfaces |= eSelectable;
     if (aInternal->HasNumericValue())
       mSupportedIfaces |= eValue;
     if (aInternal->IsLink())
       mSupportedIfaces |= eHyperLink;
   }
 
   xpcAccessibleGeneric(ProxyAccessible* aProxy, uint32_t aInterfaces) :
-    mIntl(aProxy)
+    mIntl(aProxy), mSupportedIfaces(0)
   {
     if (aInterfaces & Interfaces::SELECTION) {
       mSupportedIfaces |= eSelectable;
     }
       if (aInterfaces & Interfaces::VALUE) {
         mSupportedIfaces |= eValue;
       }
       if (aInterfaces & Interfaces::HYPERLINK) {