Batch conversion of large format images (17000px by 11000px) will crash RT, Issue 2582

This commit is contained in:
Ingo
2014-11-19 15:01:59 +01:00
parent f6acf08070
commit 6da1c851d5

View File

@@ -579,7 +579,7 @@ namespace rtengine {
}
// find the padding length to ensure a 128 bits alignment for each row
size_t size = rowstride * 3*height;
size_t size = (size_t)rowstride*3*(size_t)height;
if (!width) {
size = 0;
rowstride = 0;