* src/mainwindow.c
fix useless and potentially dangerous buffer walking (thanks to Colin).
+2006-05-17 [wwp] 2.2.0cvs26
+
+ * src/mainwindow.c
+ fix useless and potentially dangerous buffer walking (thanks to Colin).
+
2006-05-17 [wwp] 2.2.0cvs25
* src/plugins/demo/demo.c
2006-05-17 [wwp] 2.2.0cvs25
* src/plugins/demo/demo.c
( cvs diff -u -r 1.274.2.112 -r 1.274.2.114 src/mainwindow.c; ) > 2.2.0cvs23.patchset
( cvs diff -u -r 1.79.2.26 -r 1.79.2.27 src/mh.c; ) > 2.2.0cvs24.patchset
( cvs diff -u -r 1.13.2.6 -r 1.13.2.7 src/plugins/demo/demo.c; ) > 2.2.0cvs25.patchset
( cvs diff -u -r 1.274.2.112 -r 1.274.2.114 src/mainwindow.c; ) > 2.2.0cvs23.patchset
( cvs diff -u -r 1.79.2.26 -r 1.79.2.27 src/mh.c; ) > 2.2.0cvs24.patchset
( cvs diff -u -r 1.13.2.6 -r 1.13.2.7 src/plugins/demo/demo.c; ) > 2.2.0cvs25.patchset
+( cvs diff -u -r 1.274.2.114 -r 1.274.2.115 src/mainwindow.c; ) > 2.2.0cvs26.patchset
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
buf = *buffer;
if (buf == 0x00) {
buf = *buffer;
if (buf == 0x00) {
+ url_decoded = NULL;
+ *buffer = NULL;
return;
}
/* Ignore spaces, comments and tabs () */
return;
}
/* Ignore spaces, comments and tabs () */
for (i = 0; *buf != '>' && *buf != 0x00 && i<maxlen; tmp[i++] = *(buf++));
buf++;
}
for (i = 0; *buf != '>' && *buf != 0x00 && i<maxlen; tmp[i++] = *(buf++));
buf++;
}
- else
- /* else, we finish parsing and ignore everything */
- for (;buf != 0x00; buf++);
+ else {
+ *buffer = NULL;
+ *url_decoded = NULL;
+ return;
+ }
+ *url_decoded = NULL;
+ *buffer = NULL;
- for (;*buf != 0x00; buf++);
return;
}
decode_uri (url_decoded, (const gchar *)tmp);
return;
}
decode_uri (url_decoded, (const gchar *)tmp);