From 19321017a92e81d246e435f4295b17c373982a40 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 6 Feb 2009 02:08:00 +0000 Subject: Document the assumption that all URLs passed into urldb are already normalised. Violate this precondition at your peril. svn path=/trunk/netsurf/; revision=6371 --- content/urldb.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content/urldb.c') diff --git a/content/urldb.c b/content/urldb.c index 9e5c45ac1..2d862c66d 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -79,6 +79,10 @@ * with similar performance characteristics, but with a significantly * simpler implementation. Entries in this tree comprise pointers to the * leaf nodes of the host tree described above. + * + * REALLY IMPORTANT NOTE: urldb expects all URLs to be normalised. Use of + * non-normalised URLs with urldb will result in undefined behaviour and + * potential crashes. */ #define _GNU_SOURCE /* For strndup */ -- cgit v1.2.3