summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tkImgPhoto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 9c5f91c..61d1c9b 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -3171,6 +3171,8 @@ Tk_PhotoPutZoomedBlock(
/*
* Zero-sized blocks never cause any changes. [Bug 3078902]
+ * Negative-size blocks happen when trying to copy from an area outside
+ * the source image. [Bug a0241c0e25]
*/
if (blockPtr->height <= 0 || blockPtr->width <= 0) {