comparison src/image.hh @ 1178:97b68213b58e

Added a limit for PNG image size
author Jorge Arellano Cid <jcid@dillo.org>
date Fri, 19 Jun 2009 13:11:36 -0400
parents 4d3828de8290
children f77f7973534e
comparison
equal deleted inserted replaced
1176:7ac828844742 1178:97b68213b58e
9 #endif /* __cplusplus */ 9 #endif /* __cplusplus */
10 10
11 11
12 #include "bitvec.h" 12 #include "bitvec.h"
13 #include "url.h" 13 #include "url.h"
14
15 /*
16 * Defines
17 */
18
19 /* Arbitrary maximum for image size (to avoid image size-crafting attacks). */
20 #define IMAGE_MAX_W 6000
21 #define IMAGE_MAX_H 6000
22
23
24 /*
25 * Types
26 */
14 27
15 typedef struct _DilloImage DilloImage; 28 typedef struct _DilloImage DilloImage;
16 29
17 typedef enum { 30 typedef enum {
18 DILLO_IMG_TYPE_INDEXED, 31 DILLO_IMG_TYPE_INDEXED,