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 289757 Details for
Bug 425927
CVE-2007-6284 libxml2: infinite loop in UTF-8 decoding
[?]
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]
Upstream patch written by Daniel Veillard
libxml2_CVE-2007-6284.patch (text/plain), 1.63 KB, created by
Tomas Hoger
on 2007-12-17 09:37:22 UTC
(
hide
)
Description:
Upstream patch written by Daniel Veillard
Filename:
MIME Type:
Creator:
Tomas Hoger
Created:
2007-12-17 09:37:22 UTC
Size:
1.63 KB
patch
obsolete
>Index: parserInternals.c >=================================================================== >--- parserInternals.c (revision 3667) >+++ parserInternals.c (working copy) >@@ -638,14 +638,13 @@ > > c = *cur; > if (c & 0x80) { >- if (c == 0xC0) >+ if (((c & 0x40) == 0) || (c == 0xC0)) > goto encoding_error; > if (cur[1] == 0) > xmlParserInputGrow(ctxt->input, INPUT_CHUNK); > if ((cur[1] & 0xc0) != 0x80) > goto encoding_error; > if ((c & 0xe0) == 0xe0) { >- > if (cur[2] == 0) > xmlParserInputGrow(ctxt->input, INPUT_CHUNK); > if ((cur[2] & 0xc0) != 0x80) >@@ -662,18 +661,24 @@ > val |= (cur[1] & 0x3f) << 12; > val |= (cur[2] & 0x3f) << 6; > val |= cur[3] & 0x3f; >+ if (val < 0x10000) >+ goto encoding_error; > } else { > /* 3-byte code */ > *len = 3; > val = (cur[0] & 0xf) << 12; > val |= (cur[1] & 0x3f) << 6; > val |= cur[2] & 0x3f; >+ if (val < 0x800) >+ goto encoding_error; > } > } else { > /* 2-byte code */ > *len = 2; > val = (cur[0] & 0x1f) << 6; > val |= cur[1] & 0x3f; >+ if (val < 0x80) >+ goto encoding_error; > } > if (!IS_CHAR(val)) { > xmlErrEncodingInt(ctxt, XML_ERR_INVALID_CHAR, >@@ -683,6 +688,13 @@ > } else { > /* 1-byte code */ > *len = 1; >+ if (*ctxt->input->cur == 0) >+ xmlParserInputGrow(ctxt->input, INPUT_CHUNK); >+ if ((*ctxt->input->cur == 0) && >+ (ctxt->input->end > ctxt->input->cur)) { >+ xmlErrEncodingInt(ctxt, XML_ERR_INVALID_CHAR, >+ "Char 0x%X out of allowed range\n", val); >+ } > if (*ctxt->input->cur == 0xD) { > if (ctxt->input->cur[1] == 0xA) { > ctxt->nbChars++;
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 425927
: 289757