]> git.pld-linux.org Git - packages/libxml.git/commitdiff
- added fixes missing in Debian's backport
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 19 Nov 2004 12:38:23 +0000 (12:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libxml-urlbound.patch -> 1.2

libxml-urlbound.patch

index 26650339865cdd30319d2831e52efcb3f848120b..8835df52c3bbd95c2315cd92b00cf2923bf2a9c1 100644 (file)
          if ((cur[0] == ':') && (cur[1] == '/') && (cur[2] == '/')) {
            buf[index] = 0;
            ctxt->protocol = xmlMemStrdup(buf);
+@@ -236,7 +236,7 @@
+     if (*cur == 0) return;
+     buf[index] = 0;
+-    while (1) {
++    while (index < (XML_NANO_MAX_URLBUF - 1)) {
+         if (cur[0] == ':') {
+           buf[index] = 0;
+           ctxt->hostname = xmlMemStrdup(buf);
 @@ -263,7 +265,7 @@
      else {
          index = 0;
          if ((cur[0] == ':') && (cur[1] == '/') && (cur[2] == '/')) {
            buf[index] = 0;
            if (strcmp(ctxt->protocol, buf))
+@@ -318,7 +318,7 @@
+       return(-1);
+     buf[index] = 0;
+-    while (1) {
++    while (index < (XML_NANO_MAX_URLBUF - 1)) {
+         if (cur[0] == ':') {
+           buf[index] = 0;
+           if (strcmp(ctxt->hostname, buf))
 @@ -353,7 +355,7 @@
      else {
          index = 0;
          if ((cur[0] == ':') && (cur[1] == '/') && (cur[2] == '/')) {
            buf[index] = 0;
            index = 0;
+@@ -407,7 +407,7 @@
+     if (*cur == 0) return;
+     buf[index] = 0;
+-    while (1) {
++    while (index < (XML_NANO_MAX_URLBUF - 1)) {
+         if (cur[0] == ':') {
+           buf[index] = 0;
+           proxy = xmlMemStrdup(buf);
 --- libxml-1.8.17.orig/nanohttp.c
 +++ libxml-1.8.17/nanohttp.c
 @@ -161,6 +161,7 @@
          if ((cur[0] == ':') && (cur[1] == '/') && (cur[2] == '/')) {
            buf[index] = 0;
            ctxt->protocol = xmlMemStrdup(buf);
+@@ -191,7 +191,7 @@
+     if (*cur == 0) return;
+     buf[index] = 0;
+-    while (1) {
++    while (index < indexMax) {
+         if (cur[0] == ':') {
+           buf[index] = 0;
+           ctxt->hostname = xmlMemStrdup(buf);
 @@ -219,7 +220,7 @@
      else {
          index = 0;
          if ((cur[0] == ':') && (cur[1] == '/') && (cur[2] == '/')) {
            buf[index] = 0;
            index = 0;
+@@ -272,7 +272,7 @@
+     if (*cur == 0) return;
+     buf[index] = 0;
+-    while (1) {
++    while (index < indexMax) {
+         if (cur[0] == ':') {
+           buf[index] = 0;
+           proxy = xmlMemStrdup(buf);
This page took 0.059133 seconds and 4 git commands to generate.