Debug crash when viewing certain message with unknown attachment size in folder not synced for offline use
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
Details
Attachments
(2 files, 2 obsolete files)
5.65 KB,
text/plain
|
Details | |
1.52 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
I did some debugging, nsImapMockChannel::GetContentLength()
hands back an uninitialised mContentLength
.
Should be initialised like here in NNTP:
https://searchfox.org/comm-central/rev/95a184ce92612a12cb68ed2d7284a0c1c02cff30/mailnews/news/src/nsNntpMockChannel.cpp#24
The crash is here:
https://searchfox.org/mozilla-central/rev/80a3d06820b31e1d95beb582f15e789cda9f6e03/dom/fetch/FetchDriver.cpp#843
and then here:
https://searchfox.org/mozilla-central/rev/80a3d06820b31e1d95beb582f15e789cda9f6e03/dom/fetch/InternalResponse.h#195
One line fix. I'll also attach the test message.
Assignee | ||
Comment 1•5 years ago
|
||
Test data, put this into an IMAP folder not synced for offline use, like the SPAM folder.
Assignee | ||
Comment 2•5 years ago
|
||
This fixes the debug crash via MOZ_ASSERT() for me.
Assignee | ||
Comment 3•5 years ago
|
||
Tweaked comment.
Assignee | ||
Comment 4•5 years ago
•
|
||
OK, we can also use the M-C constant.
Comment on attachment 9065892 [details] [diff] [review] 1552667-mContentLength.patch Review of attachment 9065892 [details] [diff] [review]: ----------------------------------------------------------------- Thanks.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/865b4199ce94
initialise mContentLength in nsImapMockChannel CTOR to avoid MOZ_ASSERT() later. r=aceman
Assignee | ||
Updated•5 years ago
|
Description
•