Displaying 2 results from an estimated 2 matches for "png_uint_31_max".
2019 Dec 18
2
Missing code depending on a #ifdef within the .ll file
Hi David,
My question is: why both #ifdef and #else branches are missing? I think at
least one of the two should be present... In fact there is a case where the
width could be greater then
PNG_USER_WIDTH_MAX but not greater then PNG_UINT_31_MAX. That's why I was
expecting at least one of the two...
Thanks
Alberto
On Wed, Dec 18, 2019, 22:12 David Blaikie <dblaikie at gmail.com> wrote:
> Not sure I understand the question - but usually a compiler would, on one
> compilation, only compile one versoin of the code with on...
2019 Dec 18
2
Missing code depending on a #ifdef within the .ll file
...bit_depth,
int color_type, int interlace_type, int compression_type,
int filter_type)
{
int error = 0;
/* Check for width and height valid values */
if (width == 0)
{
png_warning(png_ptr, "Image width is zero in IHDR");
error = 1;
}
else if (width > PNG_UINT_31_MAX)
{
png_warning(png_ptr, "Invalid image width in IHDR");
error = 1;
}
* else {# ifdef PNG_SET_USER_LIMITS_SUPPORTED if (width >
png_ptr->user_width_max)# else if (width > PNG_USER_WIDTH_MAX)#
endif { png_warning(png_p...