CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Subversion Repository
Parent Directory
|
Revision Log
Revision 2619 -
(show annotations)
Thu Feb 2 11:16:40 2012 UTC (16 months, 2 weeks ago) by gesp
File size: 681 byte(s)
Thu Feb 2 11:16:40 2012 UTC (16 months, 2 weeks ago) by gesp
File size: 681 byte(s)
libxml2: fixed to 2.7.8-2
| 1 | From 5bd3c061823a8499b27422aee04ea20aae24f03e Mon Sep 17 00:00:00 2001 |
| 2 | From: Daniel Veillard <veillard@redhat.com> |
| 3 | Date: Fri, 16 Dec 2011 10:53:35 +0000 |
| 4 | Subject: Fix an allocation error when copying entities |
| 5 | |
| 6 | --- |
| 7 | diff --git a/parser.c b/parser.c |
| 8 | index 4e5dcb9..c55e41d 100644 |
| 9 | --- a/parser.c |
| 10 | +++ b/parser.c |
| 11 | @@ -2709,7 +2709,7 @@ xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len, |
| 12 | |
| 13 | buffer[nbchars++] = '&'; |
| 14 | if (nbchars > buffer_size - i - XML_PARSER_BUFFER_SIZE) { |
| 15 | - growBuffer(buffer, XML_PARSER_BUFFER_SIZE); |
| 16 | + growBuffer(buffer, i + XML_PARSER_BUFFER_SIZE); |
| 17 | } |
| 18 | for (;i > 0;i--) |
| 19 | buffer[nbchars++] = *cur++; |
| 20 | -- |
| 21 | cgit v0.9.0.2 |