diff options
Diffstat (limited to 'src/image.hh')
-rw-r--r-- | src/image.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/image.hh b/src/image.hh index c1b0e918..8291ffb4 100644 --- a/src/image.hh +++ b/src/image.hh @@ -12,6 +12,19 @@ extern "C" { #include "bitvec.h" #include "url.h" +/* + * Defines + */ + +/* Arbitrary maximum for image size (to avoid image size-crafting attacks). */ +#define IMAGE_MAX_W 6000 +#define IMAGE_MAX_H 6000 + + +/* + * Types + */ + typedef struct _DilloImage DilloImage; typedef enum { |