diff 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
line wrap: on
line diff
--- a/src/image.hh	Wed Jun 17 14:18:13 2009 -0400
+++ b/src/image.hh	Fri Jun 19 13:11:36 2009 -0400
@@ -12,6 +12,19 @@
 #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 {