Displaying 2 results from an estimated 2 matches for "png_user_width_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 co...
2019 Dec 18
2
Missing code depending on a #ifdef within the .ll file
...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_ptr, "Image width exceeds user limit
in IHDR"); error = 1; } }*
...
}
Unfortunately the relative IR does not seem to have the branch highlighted
in bold:
; Function Attrs: nounwind uwtable
define void @png_check_IHDR(%struct.png_st...