Closed Bug 191131 Opened 22 years ago Closed 22 years ago

nsDispatchSupport ClassIsListed fn returns wrong listIsEmpty value

Categories

(Core :: XPConnect, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.3beta

People

(Reporter: adamlock, Assigned: adamlock)

References

Details

Attachments

(1 file)

nsDispatchSupport.cpp contains a ClassIsListed() function which is meant to read
the registry and say whether a clsid is listed or not. When the key doesn't exist
or cannot be opened, the function puts the wrong value into the listIsEmpty
return value causing the whitelist check further on to fail.

Workaround is to create the SOFTWARE\Mozilla\ActiveX\Whitelist\CLSID key to
ensure the test can open the registry key and count the entries.

Patch follows
Attached patch PatchSplinter Review
David, can you review this? Thanks
Comment on attachment 112989 [details] [diff] [review]
Patch

r=dbradley

I like the change to PRBool return value too.
Attachment #112989 - Flags: review+
Depends on: 191157
Comment on attachment 112989 [details] [diff] [review]
Patch

Hi Brendan, can I have an sr on this patch to xpconnect to correct check the
COM connect object registry blacklist & whitelist?

Thanks
Attachment #112989 - Flags: superreview?(brendan)
Comment on attachment 112989 [details] [diff] [review]
Patch

sr=darin
Attachment #112989 - Flags: superreview?(brendan) → superreview+
Comment on attachment 112989 [details] [diff] [review]
Patch

Requesting 1.3b approval. Patch only affects COM connect, is low risk and
corrects a security inaccuracy when trying to read from a registry key that
cannot be found
Attachment #112989 - Flags: approval1.3b?
Comment on attachment 112989 [details] [diff] [review]
Patch

a=asa (on behalf of drivers) for checkin to 1.3beta.
Attachment #112989 - Flags: approval1.3b? → approval1.3b+
No longer depends on: 191157
Fix is in
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Checkin Verified -
Status: RESOLVED → VERIFIED
Target Milestone: --- → mozilla1.3beta
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: