mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
Bug 1333038 - Use 'modern' pointers to fix crash due to nsMsgLineStreamBuffer object being deleted while still in use.
Suspected "use after free" in nsMsgLineStreamBuffer::ReadNextLine() leading to crash since object may be destroyed while still in use on another thread. Tag #1273
This commit is contained in:
parent
37c62668cb
commit
14590876b2
13 changed files with 14 additions and 26 deletions
|
|
@ -236,7 +236,6 @@ nsSmtpProtocol::~nsSmtpProtocol()
|
|||
{
|
||||
// free our local state
|
||||
PR_Free(m_dataBuf);
|
||||
delete m_lineStreamBuffer;
|
||||
}
|
||||
|
||||
void nsSmtpProtocol::Initialize(nsIURI * aURL)
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ private:
|
|||
int32_t m_previousResponseCode;
|
||||
int32_t m_continuationResponse;
|
||||
nsCString m_responseText; /* text returned from Smtp server */
|
||||
nsMsgLineStreamBuffer *m_lineStreamBuffer; // used to efficiently extract lines from the incoming data stream
|
||||
RefPtr<nsMsgLineStreamBuffer> m_lineStreamBuffer; // used to efficiently extract lines from the incoming data stream
|
||||
|
||||
nsTArray<nsCString> m_addresses;
|
||||
uint32_t m_addressesLeft;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue