summaryrefslogtreecommitdiff
path: root/src/image.hh
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-06-19 13:11:36 -0400
committerJorge Arellano Cid <jcid@dillo.org>2009-06-19 13:11:36 -0400
commitc1ff2a39f4abae6cf587df14a9754b98c1ccc0e3 (patch)
tree7e2b1f7698a756d0531ebc40711948a83b471ad7 /src/image.hh
parentf04e6473ce9df77056e7b188b17a5e3e0015c297 (diff)
Added a limit for PNG image size
Diffstat (limited to 'src/image.hh')
-rw-r--r--src/image.hh13
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 {