Closed Bug 650935 Opened 13 years ago Closed 12 years ago

UrlCryptoKeyManager does not correctly translate base64 keys

Categories

(Toolkit :: Safe Browsing, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 20

People

(Reporter: mmm, Assigned: devel.niks)

Details

Attachments

(1 file)

In unUrlSafe, we only translate the first instance of a "-" -> "+" and "_" -> "/". These replacements should be made global.

Appropriate section of code:
http://hg.mozilla.org/mozilla-central/diff/39d0829ed9e2/toolkit/components/url-classifier/content/url-crypto-key-manager.js

It looks like this piece of code is still used, not 100% sure though. Basing my judgement that this should be a global replace on the nsUrlClassifierUtils version at http://mxr.mozilla.org/mozilla-central/source/toolkit/components/url-classifier/nsUrlClassifierUtils.cpp#401
Attached patch UnUrlSafe fixSplinter Review
Hi, here is the fix for this bug
Attachment #554277 - Flags: review?(dcamp)
Attachment #554277 - Flags: review?(dcamp) → review+
Hello Nikolay, do you require assistance in getting this patch checked-in to the tree?
Assignee: nobody → devel.niks
Status: NEW → ASSIGNED
Flags: needinfo?(devel.niks)
Yep, I think so. It emerged that it's more complicated process than I thought.
Flags: needinfo?(devel.niks)
>> Hello Nikolay, do you require assistance in getting this patch checked-in to the tree?
> Yep, I think so. It emerged that it's more complicated process than I thought.
Setting the checkin-needed flag.
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/ef515efc6ff7

Thanks for the patch, Nikolay! And sorry for the horribly long delay :(
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/ef515efc6ff7
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: