Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/a88254897b522f0966b3e479a69f4f5c074d5e63
...commit
http://git.netsurf-browser.org/netsurf.git/commit/a88254897b522f0966b3e479a69f4f5c074d5e63
...tree
http://git.netsurf-browser.org/netsurf.git/tree/a88254897b522f0966b3e479a69f4f5c074d5e63
The branch, master has been updated
via a88254897b522f0966b3e479a69f4f5c074d5e63 (commit)
from e182a4d67c56aeb95179cde78886532665e0036b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=a88254897b522f0966b3e479a69f4f5c074d5e63
commit a88254897b522f0966b3e479a69f4f5c074d5e63
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>
Revert "make urldb internal parse macros less prone to control flow errors"
This reverts commit 718da3ffffd1181a0b5b2d590214bc408ca44117.
These macros are used in a way that causes safe macros to break
diff --git a/content/urldb.c b/content/urldb.c
index c1c39c1..60944f7 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -3796,7 +3796,7 @@ void urldb_load_cookies(const char *filename)
if (!fp)
return;
-#define FIND_T do { \
+#define FIND_T { \
for (; *p && *p != '\t'; p++) \
; /* do nothing */ \
if (p >= end) { \
@@ -3804,16 +3804,16 @@ void urldb_load_cookies(const char *filename)
continue; \
} \
*p++ = '\0'; \
- } while(0)
+}
-#define SKIP_T do { \
+#define SKIP_T { \
for (; *p && *p == '\t'; p++) \
; /* do nothing */ \
if (p >= end) { \
LOG("Overran input"); \
continue; \
} \
- } while(0)
+}
while (fgets(s, sizeof s, fp)) {
char *p = s, *end = 0,
-----------------------------------------------------------------------
Summary of changes:
content/urldb.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/content/urldb.c b/content/urldb.c
index c1c39c1..60944f7 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -3796,7 +3796,7 @@ void urldb_load_cookies(const char *filename)
if (!fp)
return;
-#define FIND_T do { \
+#define FIND_T { \
for (; *p && *p != '\t'; p++) \
; /* do nothing */ \
if (p >= end) { \
@@ -3804,16 +3804,16 @@ void urldb_load_cookies(const char *filename)
continue; \
} \
*p++ = '\0'; \
- } while(0)
+}
-#define SKIP_T do { \
+#define SKIP_T { \
for (; *p && *p == '\t'; p++) \
; /* do nothing */ \
if (p >= end) { \
LOG("Overran input"); \
continue; \
} \
- } while(0)
+}
while (fgets(s, sizeof s, fp)) {
char *p = s, *end = 0,
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org