Open jmoellers opened 2 years ago
When a zero width or zero height image is given, a divide-by-zero exception will occur. This patch checks for this condition, emits a warning message and sets the lines and cols to 0 in that case. This fixes CVE-2022-0856
When a zero width or zero height image is given, a divide-by-zero exception will occur. This patch checks for this condition, emits a warning message and sets the lines and cols to 0 in that case. This fixes CVE-2022-0856