Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 151307 Details for
Bug 234633
CVE-2007-0242 QT UTF8 improper character expansion
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for kjs
kdelibs-kjs.diff (text/plain), 1.31 KB, created by
Josh Bressers
on 2007-03-30 18:29:07 UTC
(
hide
)
Description:
Patch for kjs
Filename:
MIME Type:
Creator:
Josh Bressers
Created:
2007-03-30 18:29:07 UTC
Size:
1.31 KB
patch
obsolete
>------------------------------------------------------------------------ >r645387 | porten | 2007-03-22 15:01:13 +0100 (Thu, 22 Mar 2007) | 4 lines > >substitute some of the invalid sequences with the standard replacement >char. this matches Mozilla but not IE which leaves them unchanged (or >throws an exception) > >------------------------------------------------------------------------ >--- kjs/function.cpp >+++ kjs/function.cpp >@@ -244,11 +244,15 @@ UString decodeURI(ExecState *exec, UStri > } > > // UTF-8 transform >+ const unsigned long replacementChar = 0xFFFD; > unsigned long V; > if (n == 2) { > unsigned long yyyyy = octets[0] & 0x1F; > unsigned long zzzzzz = octets[1] & 0x3F; > V = (yyyyy << 6) | zzzzzz; >+ // 2-byte sequence overlong for this value? >+ if (V < 0xFF) >+ V = replacementChar; > C = UChar((unsigned short)V); > } > else if (n == 3) { >@@ -256,6 +260,11 @@ UString decodeURI(ExecState *exec, UStri > unsigned long yyyyyy = octets[1] & 0x3F; > unsigned long zzzzzz = octets[2] & 0x3F; > V = (xxxx << 12) | (yyyyyy << 6) | zzzzzz; >+ // 3-byte sequence overlong for this value, >+ // an invalid value or UTF-16 surrogate? >+ if (V < 0x800 || V == 0xFFFE || V == 0xFFFF || >+ (V >= 0xD800 && V <= 0xDFFF)) >+ V = replacementChar; > C = UChar((unsigned short)V); > } > else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234633
: 151307 |
151310
|
151312