diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-03 10:48:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-03 10:49:04 +0300 |
commit | 8e75abd29aa3e30256f79279658aff6512acba67 (patch) | |
tree | c3d4d0a9ed1ad801db6c36651d5ed896b9bc255f /source | |
parent | 2ed4f9854893cc78de80f49291373810e0d1c3da (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/imbuf/intern/scaling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/scaling.c b/source/blender/imbuf/intern/scaling.c index 2601fe62c2f..605adffb813 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; |