Closed Bug 477498 Opened 15 years ago Closed 15 years ago

Crash [@ TextRunWordCache::MakeTextRun]

Categories

(Core :: Layout: Text and Fonts, defect, P2)

x86
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: crash, fixed1.9.1)

Crash Data

Attachments

(2 files)

Attached file stack
I got the crash when running mochitest. The crash happened with the test for
bug 441782.

No idea if this is security sensitive.
Something strange happening
(gdb) p length
$1 = 11
(gdb) p j
$2 = 0
(gdb) p wordStart
$3 = 16
(gdb) p i
$4 = 27

That means that wordStart+j > 0 is true, so numString[j-1] is evaluated.
And j-1 is pretty huge number because j is unsigned and its value is 0.
Blocks: 441782
Perhaps this is a regression from Bug 467672?
Attached patch PatchSplinter Review
I think it's a regression from bug 441782.  I needed a workaround to run
mochitest and this seems to work...
Flags: blocking1.9.1?
Comment on attachment 361161 [details] [diff] [review]
Patch

This seems like the correct fix.  Requesting review from roc.
Attachment #361161 - Flags: superreview?(roc)
Attachment #361161 - Flags: review?(roc)
Attachment #361161 - Attachment description: fwiw → Patch
Assignee: nobody → mats.palmgren
Keywords: crash
Attachment #361161 - Flags: superreview?(roc)
Attachment #361161 - Flags: superreview+
Attachment #361161 - Flags: review?(roc)
Attachment #361161 - Flags: review+
I pushed this.
http://hg.mozilla.org/mozilla-central/rev/5f349409c9d5

Thanks Mats!
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P2
Keywords: fixed1.9.1
Group: core-security
Flags: wanted1.9.0.x-
Crash Signature: [@ TextRunWordCache::MakeTextRun]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: