diff options
author | ruslantproductengine <ruslantproductengine@lindenlab.com> | 2014-09-15 20:26:28 +0300 |
---|---|---|
committer | ruslantproductengine <ruslantproductengine@lindenlab.com> | 2014-09-15 20:26:28 +0300 |
commit | f1d2a1a4957ff6ee76d98f307bd682a36fe94038 (patch) | |
tree | f92ac665ddb00cff5f7e1e6501bcc7a7dfe3260c /indra/llimage/llimagepng.cpp | |
parent | b75d2f7c3f955ce98064e688e61f5fdf785b1ed8 (diff) |
MAINT-3562 FIXED Viewer crashes when updating local textures using Substance Designer : add code for control input buffer size
Diffstat (limited to 'indra/llimage/llimagepng.cpp')
-rwxr-xr-x | indra/llimage/llimagepng.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llimage/llimagepng.cpp b/indra/llimage/llimagepng.cpp index 294f68b122..7735dc1379 100755 --- a/indra/llimage/llimagepng.cpp +++ b/indra/llimage/llimagepng.cpp @@ -67,7 +67,7 @@ BOOL LLImagePNG::updateData() } LLPngWrapper::ImageInfo infop; - if (! pngWrapper.readPng(getData(), NULL, &infop)) + if (! pngWrapper.readPng(getData(), getDataSize(), NULL, &infop)) { setLastError(pngWrapper.getErrorMessage()); return FALSE; @@ -102,7 +102,7 @@ BOOL LLImagePNG::decode(LLImageRaw* raw_image, F32 decode_time) return FALSE; } - if (! pngWrapper.readPng(getData(), raw_image)) + if (! pngWrapper.readPng(getData(), getDataSize(), raw_image)) { setLastError(pngWrapper.getErrorMessage()); return FALSE; |