diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-15 15:56:36 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-15 15:56:36 +0000 |
commit | 6a9b87edf9f730c221762dbe3dceea7f7a71bc08 (patch) | |
tree | b95f5007f381817db044ffad17e19b36d54af8c8 /fm.h | |
parent | [w3m-dev 03435] save image with SAVE (diff) | |
download | w3m-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |