We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e405534 commit cd249d5Copy full SHA for cd249d5
src/gpujpeg_common.c
@@ -1178,7 +1178,7 @@ gpujpeg_image_calculate_size(struct gpujpeg_image_parameters* param)
1178
assert(param->width > 0 && param->height > 0);
1179
assert(param->width <= 65535 && param->height <= 65535);
1180
assert(param->width_padding >= 0);
1181
- assert(param->width_padding < 100000); // safety check - 100k chosen arbitrarily
+ assert(param->width_padding < 10 * 1000 * 1000); // safety check - 10M chosen arbitrarily
1182
int bpp = gpujpeg_pixel_format_get_unit_size(param->pixel_format);
1183
if (bpp != 0) {
1184
return ((size_t) param->width + param->width_padding) * param->height * bpp;
0 commit comments