summaryrefslogtreecommitdiff
path: root/indra/llimage/llpngwrapper.h
diff options
context:
space:
mode:
authorruslantproductengine <ruslantproductengine@lindenlab.com>2014-09-15 20:26:28 +0300
committerruslantproductengine <ruslantproductengine@lindenlab.com>2014-09-15 20:26:28 +0300
commitf1d2a1a4957ff6ee76d98f307bd682a36fe94038 (patch)
treef92ac665ddb00cff5f7e1e6501bcc7a7dfe3260c /indra/llimage/llpngwrapper.h
parentb75d2f7c3f955ce98064e688e61f5fdf785b1ed8 (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/llpngwrapper.h')
-rwxr-xr-xindra/llimage/llpngwrapper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llimage/llpngwrapper.h b/indra/llimage/llpngwrapper.h
index 739f435996..27d7df3bef 100755
--- a/indra/llimage/llpngwrapper.h
+++ b/indra/llimage/llpngwrapper.h
@@ -44,7 +44,7 @@ public:
};
BOOL isValidPng(U8* src);
- BOOL readPng(U8* src, LLImageRaw* rawImage, ImageInfo *infop = NULL);
+ BOOL readPng(U8* src, S32 dataSize, LLImageRaw* rawImage, ImageInfo *infop = NULL);
BOOL writePng(const LLImageRaw* rawImage, U8* dst);
U32 getFinalSize();
const std::string& getErrorMessage();
@@ -61,6 +61,7 @@ private:
{
U8 *mData;
U32 mOffset;
+ S32 mDataSize;
};
static void writeFlush(png_structp png_ptr);