From f1d2a1a4957ff6ee76d98f307bd682a36fe94038 Mon Sep 17 00:00:00 2001 From: ruslantproductengine Date: Mon, 15 Sep 2014 20:26:28 +0300 Subject: MAINT-3562 FIXED Viewer crashes when updating local textures using Substance Designer : add code for control input buffer size --- indra/llimage/llpngwrapper.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/llimage/llpngwrapper.h') 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); -- cgit v1.2.3