summaryrefslogtreecommitdiff
path: root/test/decode_bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/decode_bmp.c')
-rw-r--r--test/decode_bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/decode_bmp.c b/test/decode_bmp.c
index af67ae3..68de542 100644
--- a/test/decode_bmp.c
+++ b/test/decode_bmp.c
@@ -26,7 +26,7 @@ static void *bitmap_create(int width, int height, unsigned int state)
{
(void) state; /* unused */
/* ensure a stupidly large (>50Megs or so) bitmap is not created */
- if ((width * height) > (MAX_IMAGE_BYTES/BYTES_PER_PIXEL)) {
+ if (((long long)width * (long long)height) > (MAX_IMAGE_BYTES/BYTES_PER_PIXEL)) {
return NULL;
}
return calloc(width * height, BYTES_PER_PIXEL);