unlisted sec bug fix 2
[platform/upstream/jasper.git] / src / libjasper / bmp / bmp_dec.c
index 4cb0df3..7a6dcb1 100644 (file)
@@ -283,7 +283,7 @@ static bmp_info_t *bmp_getinfo(jas_stream_t *in)
        }
 
        if (info->numcolors > 0) {
-               if (!(info->palents = jas_malloc(info->numcolors *
+               if (!(info->palents = jas_alloc2(info->numcolors,
                  sizeof(bmp_palent_t)))) {
                        bmp_info_destroy(info);
                        return 0;