Closed
Bug 359209
Opened 18 years ago
Closed 8 years ago
nsSecretDecoderRing::Encrypt and nsSecretDecoderRing::EncryptString violate xpcom memory management rules
Categories
(Core :: Security: PSM, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 486404
People
(Reporter: timeless, Unassigned)
References
()
Details
xpcom says that the allocator must be nsMemory (or an alias), but sdr chains to PK11SDR_Decrypt which happens to use an Arena to allocate as well as encode which uses PR_Malloc. To guarantee corruption, nsSecretDecoderRing::EncryptString tries to use nsMemory::Free when things go wrong (that's freeing something which should be coming from the arena).
Updated•17 years ago
|
QA Contact: psm
Looks like this got fixed in bug 486404.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•