Diff for /embedaddon/libxml2/xmlsave.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:37:58 version 1.1.1.2, 2013/07/22 01:22:18
Line 248  xmlEscapeEntities(unsigned char* out, int *outlen, Line 248  xmlEscapeEntities(unsigned char* out, int *outlen,
             /*              /*
              * We assume we have UTF-8 input.               * We assume we have UTF-8 input.
              */               */
            if (outend - out < 10) break;            if (outend - out < 11) break;
   
             if (*in < 0xC0) {              if (*in < 0xC0) {
                 xmlSaveErr(XML_SAVE_NOT_UTF8, NULL, NULL);                  xmlSaveErr(XML_SAVE_NOT_UTF8, NULL, NULL);
Line 2002  xmlAttrSerializeTxtContent(xmlBufferPtr buf, xmlDocPtr Line 2002  xmlAttrSerializeTxtContent(xmlBufferPtr buf, xmlDocPtr
             /*              /*
              * We assume we have UTF-8 content.               * We assume we have UTF-8 content.
              */               */
            unsigned char tmp[10];            unsigned char tmp[12];
             int val = 0, l = 1;              int val = 0, l = 1;
   
             if (base != cur)              if (base != cur)

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>