From e6155dd37f046e984e1e0d6528a175f649e47161 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sun, 25 Mar 2012 16:42:45 +0000 Subject: about:imagecache gives URL links, and table is styled. This has revealed a buffer overflow or similar here; reducing the buffer size to 1024 makes it very fragile with long URLs. svn path=/trunk/netsurf/; revision=13700 --- image/image_cache.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'image') diff --git a/image/image_cache.c b/image/image_cache.c index c31d3e964..8124763e5 100644 --- a/image/image_cache.c +++ b/image/image_cache.c @@ -677,6 +677,11 @@ int image_cache_snentryf(char *string, size_t size, unsigned int entryn, "%p", centry->content); break; + case 'U': + slen += snprintf(string + slen, size - slen, + "%s", nsurl_access(llcache_handle_get_url(centry->content->llcache))); + break; + case 's': if (centry->bitmap != NULL) { slen += snprintf(string + slen, -- cgit v1.2.3