Closed Bug 547295 Opened 14 years ago Closed 14 years ago

XMLParser16 unescape does not handle lowercase hexadecimal sequences correctly

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P3)

x86
Windows Vista
defect

Tracking

(Not tracked)

VERIFIED FIXED
flash10.1

People

(Reporter: wsharp, Unassigned)

Details

Attachments

(2 files)

Code in XMLParser::unescape needs to handle 'a' through 'f' as well as 'A' through 'F' for hexadecimal sequences:

            var tf:TextField = new TextField ();
            tf.text = "--" + new XML ("<foo>bar &#x20ac;</foo>");
            addChild (tf);

This code needs to be added after 'A' through 'F' check

			else if (ch >= 'a' && ch <= 'f')
			ch -= ('a' - 'A' + 7);
Flags: flashplayer-qrb+
Priority: -- → P3
Target Milestone: --- → flash10.2
Attachment #429110 - Flags: review?(stejohns)
Target Milestone: flash10.2 → flash10.1
Attachment #429110 - Flags: review?(stejohns) → review+
http://hg.mozilla.org/tamarin-redux/rev/56fc8969219c
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Attached patch testcaseSplinter Review
Attachment #433567 - Flags: review?(dschaffe)
Confirmed with old avmshell that it did not escape lowercase hex values
Flags: in-testsuite?
Flags: flashplayer-triage+
Attachment #433567 - Flags: review?(dschaffe) → review+
testcase pushed in:
tr-argo ->  3840:eebec82bfb22
tr -> 4089:eebec82bfb22
Status: RESOLVED → VERIFIED
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: