This change fixes: - Constant folder uses rect of size INT_MIN .. INT_MAX, which overflows integer when calculating size. - Calculation of an offset inside of input can lead to integer overflow for big resolutions. - texture_bilinear_extend() and texture_nearest_extend() do not seem to handle single element buffers correctly. - Kuwahara has division of zero when the input size is 0. Pull Request: https://projects.blender.org/blender/blender/pulls/122674