[Bf-blender-cvs] [8e75abd] master: ImBuf: Fix crash generating preview for really huge image
Sergey Sharybin
noreply at git.blender.org
Thu Sep 3 09:49:14 CEST 2015
Commit: 8e75abd29aa3e30256f79279658aff6512acba67
Author: Sergey Sharybin
Date: Thu Sep 3 12:48:17 2015 +0500
Branches: master
https://developer.blender.org/rB8e75abd29aa3e30256f79279658aff6512acba67
ImBuf: Fix crash generating preview for really huge image
In fact, any user of IMB_scalefastImBuf() is now robust against working
with really hires images.
===================================================================
M source/blender/imbuf/intern/scaling.c
===================================================================
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c
index 2601fe6..605adff 100644
--- a/source/blender/imbuf/intern/scaling.c
+++ b/source/blender/imbuf/intern/scaling.c
@@ -1555,7 +1555,7 @@ struct ImBuf *IMB_scalefastImBuf(struct ImBuf *ibuf, unsigned int newx, unsigned
struct imbufRGBA *rectf, *_newrectf, *newrectf;
int x, y;
bool do_float = false, do_rect = false;
- int ofsx, ofsy, stepx, stepy;
+ size_t ofsx, ofsy, stepx, stepy;
rect = NULL; _newrect = NULL; newrect = NULL;
rectf = NULL; _newrectf = NULL; newrectf = NULL;
More information about the Bf-blender-cvs
mailing list