From 6a9b87edf9f730c221762dbe3dceea7f7a71bc08 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 15 Nov 2002 15:56:36 +0000 Subject: [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 --- fm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fm.h') 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 */ -- cgit v1.2.3