Closed
Bug 483661
Opened 17 years ago
Closed 15 years ago
invalid utf8 mime assertions with invalid msg headers
Categories
(MailNews Core :: MIME, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: Bienvenu, Assigned: Bienvenu)
Details
Attachments
(1 obsolete file)
Occasionally I get junk messages which cause a bunch of assertions whenever the thread line of the message is displayed. This is painful when assertions bring up a dialog, which causes the line to be repainted, etc. I have a patch that stops the assertions.
The attached patch uses copyAsciiToUnicode if the string isn't utf8, which can happen when the mime2 decoding fails. Does this look reasonable?
Attachment #367647 -
Flags: superreview?(bugzilla)
Attachment #367647 -
Flags: review?(neil)
Comment 1•17 years ago
|
||
(In reply to comment #0)
> The attached patch uses copyAsciiToUnicode if the string isn't utf8, which can
> happen when the mime2 decoding fails. Does this look reasonable?
It looks to me that you've changed the block for when the decoding succeeds...
| Assignee | ||
Comment 2•17 years ago
|
||
(In reply to comment #1)
> (In reply to comment #0)
> > The attached patch uses copyAsciiToUnicode if the string isn't utf8, which can
> > happen when the mime2 decoding fails. Does this look reasonable?
> It looks to me that you've changed the block for when the decoding succeeds...
You're probably right - I had a couple versions of this patch in various trees, and this might be the bad one...
Comment 3•17 years ago
|
||
nsIMimeConverter::decodeMimeHeader is scriptable. This should have a unit test.
Comment 4•17 years ago
|
||
Comment on attachment 367647 [details] [diff] [review]
proposed fix
Yeah, I think Neil's right - it looks like you've changed the wrong block. Canceling review whilst waiting for an updated patch.
+ !strcmp(header, decodedCstr) && !IsUTF8(nsDependentCString(decodedCstr)))
This should use MsgIsUTF8 now.
Attachment #367647 -
Flags: superreview?(bugzilla)
| Assignee | ||
Updated•16 years ago
|
Attachment #367647 -
Attachment is obsolete: true
Attachment #367647 -
Flags: review?(neil)
| Assignee | ||
Comment 5•15 years ago
|
||
I think some other patch has fixed this...
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•