Closed Bug 1034403 Opened 10 years ago Closed 10 years ago

"ASSERTION: Getting CharProps for codepoint outside Unicode range" with small-caps

Categories

(Core :: Graphics: Text, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: jruderman, Assigned: jfkthame)

References

Details

(Keywords: assertion, testcase)

Attachments

(4 files, 1 obsolete file)

Attached file testcase that asserts
###!!! ASSERTION: Getting CharProps for codepoint outside Unicode range: 'Not Reached', file intl/unicharutil/util/nsUnicodeProperties.cpp, line 51

The codepoint passed to GetCharProps2 is indeed outside the Unicode range: it is 4294967295.

Also affects <canvas> text methods.
Attached file stack
Somehow the second testcase renders as X∞≤ (X U+221E U+2264).

I have no idea how U+E0131 turns into U+221E U+2264.
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Comment on attachment 8450825 [details] [diff] [review]
update index to step past the second half of a surrogate pair.

I don't think this is quite right, actually; cancelling r? until I look more carefully.
Attachment #8450825 - Flags: review?(roc)
Attachment #8450825 - Attachment is obsolete: true
Comment on attachment 8451175 [details] [diff] [review]
update index to step past the second half of a surrogate pair.

Review of attachment 8451175 [details] [diff] [review]:
-----------------------------------------------------------------

don't forget the test
Attachment #8451175 - Flags: review?(roc) → review+
Pushed to inbound (including the asserting testcase):
https://hg.mozilla.org/integration/mozilla-inbound/rev/eed019320764
Target Milestone: --- → mozilla33
https://hg.mozilla.org/mozilla-central/rev/eed019320764
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: