Closed Bug 483661 Opened 17 years ago Closed 15 years ago

invalid utf8 mime assertions with invalid msg headers

Categories

(MailNews Core :: MIME, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

Attachments

(1 obsolete file)

Attached patch proposed fix (obsolete) — Splinter Review
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)
(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...
(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...
nsIMimeConverter::decodeMimeHeader is scriptable. This should have a unit test.
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)
Attachment #367647 - Attachment is obsolete: true
Attachment #367647 - Flags: review?(neil)
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.

Attachment

General

Created:
Updated:
Size: