diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-06 02:08:00 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-06 02:08:00 +0000 |
commit | 19321017a92e81d246e435f4295b17c373982a40 (patch) | |
tree | fb17d2f7c088b418c2c5ec84a9b8743317327a3d /content | |
parent | 961be4593b7014ce2575b7fcfbc0c4533ccc992a (diff) | |
download | netsurf-19321017a92e81d246e435f4295b17c373982a40.tar.gz netsurf-19321017a92e81d246e435f4295b17c373982a40.tar.bz2 |
Document the assumption that all URLs passed into urldb are already normalised. Violate this precondition at your peril.
svn path=/trunk/netsurf/; revision=6371
Diffstat (limited to 'content')
-rw-r--r-- | content/urldb.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |