Closed Bug 465805 Opened 16 years ago Closed 16 years ago

Crash in shredder during body search

Categories

(MailNews Core :: Search, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b1

People

(Reporter: rkent, Assigned: rkent)

Details

Attachments

(2 files, 2 obsolete files)

Doing a large body search, TB/Shredder reproducibly crashes in nsMsgBodyHandler.cpp. In the debugger, there is an infinite recursion calling ApplyTransformations with a zero length buffer.
This patch successfully stops the crash on my system.
Attachment #349027 - Flags: superreview?(bienvenu)
Attachment #349027 - Flags: review?(bienvenu)
Comment on attachment 349027 [details] [diff] [review]
[checked in] Detect and warn if buffer is empty

makes sense, thx, Kent - can we add a test case for this?
Attachment #349027 - Flags: superreview?(bienvenu)
Attachment #349027 - Flags: superreview+
Attachment #349027 - Flags: review?(bienvenu)
Attachment #349027 - Flags: review+
fix checked in, thx, Kent - changeset:   1155:aaf9a85fde16
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.0b1
Same .cpp, added the test case.

Although I can display that email OK, search does not find terms that I can see when I display it. That's probably a separate bug (or not worth it?)
Attachment #349027 - Attachment is obsolete: true
Attachment #349056 - Flags: superreview?(bienvenu)
Attachment #349056 - Flags: review?(bienvenu)
Oops, I noticed you checked it in. Let me redo the patch without the .cpp part.
Attachment #349027 - Attachment is obsolete: false
Attached patch Test case only (obsolete) — Splinter Review
I don't think this needs sr - though that's a trivial point here.
Attachment #349056 - Attachment is obsolete: true
Attachment #349058 - Flags: review?(bienvenu)
Attachment #349056 - Flags: superreview?(bienvenu)
Attachment #349056 - Flags: review?(bienvenu)
As requested by bienvenu.
Attachment #349058 - Attachment is obsolete: true
Attachment #349063 - Flags: review?(bienvenu)
Attachment #349058 - Flags: review?(bienvenu)
Comment on attachment 349063 [details] [diff] [review]
[checked in] Test case with fewer and obscured headers

thx, Kent.
Attachment #349063 - Flags: review?(bienvenu) → review+
Comment on attachment 349027 [details] [diff] [review]
[checked in] Detect and warn if buffer is empty

http://hg.mozilla.org/comm-central/rev/aaf9a85fde16
Attachment #349027 - Attachment description: Detect and warn if buffer is empty → [checked in] Detect and warn if buffer is empty
Comment on attachment 349063 [details] [diff] [review]
[checked in] Test case with fewer and obscured headers

I've just pushed the test case: http://hg.mozilla.org/comm-central/rev/6061ec9cd615
Attachment #349063 - Attachment description: Test case with fewer and obscured headers → [checked in] Test case with fewer and obscured headers
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: