Closed
Bug 1495793
Opened 7 years ago
Closed 7 years ago
Crash in nsStreamConverter::OnDataAvailable
Categories
(MailNews Core :: MIME, defect)
Tracking
(thunderbird_esr6063+ fixed, thunderbird63 fixed, thunderbird64 fixed)
RESOLVED
FIXED
Thunderbird 64.0
People
(Reporter: wsmwk, Assigned: jorgk-bmo)
References
Details
(Keywords: crash)
Crash Data
Attachments
(2 files)
|
1.07 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-beta+
jorgk-bmo
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
|
1.64 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
#89 crash for TB60
This bug was filed from the Socorro interface and is
report bp-88ff876c-af8d-46e0-b9b1-7cd010181001.
=============================================================
Top 10 frames of crashing thread:
0 xul.dll nsStreamConverter::OnDataAvailable comm/mailnews/mime/src/nsStreamConverter.cpp:899
1 xul.dll `anonymous namespace'::SyncRunnable5<nsIStreamListener, nsIRequest*, nsISupports*, nsIInputStream*, unsigned __int64, unsigned int>::Run comm/mailnews/imap/src/nsSyncRunnableHelpers.cpp:251
2 xul.dll nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1040
3 ntdll.dll ntdll.dll@0x41fd6
4 xul.dll NS_ProcessNextEvent xpcom/threads/nsThreadUtils.cpp:517
5 xul.dll mozilla::ipc::MessagePump::Run ipc/glue/MessagePump.cpp:97
6 xul.dll MessageLoop::RunHandler ipc/chromium/src/base/message_loop.cc:319
7 xul.dll MessageLoop::Run ipc/chromium/src/base/message_loop.cc:299
8 xul.dll nsBaseAppShell::Run widget/nsBaseAppShell.cpp:157
9 xul.dll nsAppShell::Run widget/windows/nsAppShell.cpp:415
=============================================================
Mac crashes perhaps a different issue? example bp-18fb812d-9706-49d2-bbdf-7868c0181002
| Assignee | ||
Comment 1•7 years ago
|
||
nsStreamConverter.cpp:899
aIStream->Read(buf, aLength, &readLen);
We should check aIStream.
| Assignee | ||
Comment 2•7 years ago
|
||
Assignee: nobody → jorgk
Attachment #9014316 -
Flags: review?(mkmelin+mozilla)
Comment 3•7 years ago
|
||
Comment on attachment 9014316 [details] [diff] [review]
1495793-crash-fix.patch
Review of attachment 9014316 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM, r=mkmelin
Attachment #9014316 -
Flags: review?(mkmelin+mozilla) → review+
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/f0ac78200614
Fix crash in nsStreamConverter::OnDataAvailable(). r=mkmelin
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•7 years ago
|
Target Milestone: --- → Thunderbird 64.0
| Assignee | ||
Comment 5•7 years ago
|
||
I'm having second thoughts on this fix now :-(
Clearly nsIStreamListener.onDataAvailable() shouldn't be called with a null stream, so this check shouldn't hurt, although I'm surprised that it would be necessary. On the other hand there is a code path that doesn't used the parameter, so we could have checked the parameter a little later before dereferencing it. Magnus, any opinion?
| Assignee | ||
Comment 6•7 years ago
|
||
Ah well, maybe the caller, comm/mailnews/imap/src/nsSyncRunnableHelpers.cpp:251, does strange things. So better to check.
| Assignee | ||
Comment 7•7 years ago
|
||
Better like this? Sorry about the churn.
Attachment #9014461 -
Flags: review?(mkmelin+mozilla)
What about ENSURE_ARG_POINTER() ? Although placing it in the middle of a function is unusual.
Comment 9•7 years ago
|
||
Comment on attachment 9014461 [details] [diff] [review]
1495793-follow-up.patch
Review of attachment 9014461 [details] [diff] [review]:
-----------------------------------------------------------------
Either way works for me. r=mkmelin
Attachment #9014461 -
Flags: review?(mkmelin+mozilla) → review+
Comment 10•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/9766dccdd8b8
Follow-up: Move null check right before dereferencing to avoid behaviour change. r=mkmelin
| Assignee | ||
Updated•7 years ago
|
Attachment #9014316 -
Flags: approval-comm-esr60?
Attachment #9014316 -
Flags: approval-comm-beta+
| Assignee | ||
Comment 11•7 years ago
|
||
Beta (TB 63):
https://hg.mozilla.org/releases/comm-beta/rev/853d965cb50b3c64343e91fbc58a0e8054206ff9
status-thunderbird63:
--- → fixed
status-thunderbird64:
--- → fixed
status-thunderbird_esr60:
--- → affected
| Assignee | ||
Comment 12•7 years ago
|
||
Forgot to say: Merged patch.
| Assignee | ||
Updated•7 years ago
|
Attachment #9014316 -
Flags: approval-comm-esr60? → approval-comm-esr60+
| Assignee | ||
Comment 13•7 years ago
|
||
| Reporter | ||
Updated•4 years ago
|
Component: General → MIME
Product: Thunderbird → MailNews Core
Version: 58 Branch → 58
You need to log in
before you can comment on or make changes to this bug.
Description
•