Bug 65703 - Leak of password string when creating Credential
Summary: Leak of password string when creating Credential
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 10:49 PDT by Pratik Solanki
Modified: 2011-08-04 16:50 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pratik Solanki 2011-08-04 10:49:56 PDT
In AuthenticationCF.cpp, we have

Credential core(CFURLCredentialRef cfCredential)
{
    ....

    return Credential(CFURLCredentialGetUsername(cfCredential), CFURLCredentialCopyPassword(cfCredential), persistence);
}

The password string returned from CFURLCredentialCopyPassword is a copy. We need to free it.
Comment 1 Pratik Solanki 2011-08-04 11:02:39 PDT
Actually I'll just do this as part of bug 65704.