aboutsummaryrefslogtreecommitdiffstats
path: root/fm.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 15:56:36 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 15:56:36 +0000
commit6a9b87edf9f730c221762dbe3dceea7f7a71bc08 (patch)
treeb95f5007f381817db044ffad17e19b36d54af8c8 /fm.h
parent[w3m-dev 03435] save image with SAVE (diff)
downloadw3m-6a9b87edf9f730c221762dbe3dceea7f7a71bc08.tar.gz
w3m-6a9b87edf9f730c221762dbe3dceea7f7a71bc08.zip
[w3m-dev 03436] Check image size
* file.c (process_img): check w > MAX_IMAGE_SIZE (HTMLlineproc2body): check w,h > MAX_IMAGE_SIZE * fm.h (MAX_IMAGE_SIZE): added * image.c (getImageSize): check w,h,width,height > MAX_IMAGE_SIZE From: Hiroyuki Ito <hito@crl.go.jp>
Diffstat (limited to 'fm.h')
-rw-r--r--fm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fm.h b/fm.h
index 6bac9ba..a9229d3 100644
--- a/fm.h
+++ b/fm.h
@@ -1,4 +1,4 @@
-/* $Id: fm.h,v 1.78 2002/11/15 15:51:24 ukai Exp $ */
+/* $Id: fm.h,v 1.79 2002/11/15 15:56:36 ukai Exp $ */
/*
* w3m: WWW wo Miru utility
*
@@ -77,6 +77,7 @@ void bzero(void *, int);
#ifdef USE_IMAGE
#define MAX_IMAGE 1000
+#define MAX_IMAGE_SIZE 10000
#define DEFAULT_PIXEL_PER_CHAR 7.0 /* arbitrary */
#define DEFAULT_PIXEL_PER_LINE 14.0 /* arbitrary */