summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2012-03-25 16:42:45 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2012-03-25 16:42:45 +0000
commite6155dd37f046e984e1e0d6528a175f649e47161 (patch)
tree14b3360b2346c69b1328fe11b098b05fbc3e40c8 /image
parent903f4565473da7d46390dc53d9562b771c750f2b (diff)
downloadnetsurf-e6155dd37f046e984e1e0d6528a175f649e47161.tar.gz
netsurf-e6155dd37f046e984e1e0d6528a175f649e47161.tar.bz2
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
Diffstat (limited to 'image')
-rw-r--r--image/image_cache.c5
1 files changed, 5 insertions, 0 deletions
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,