- fix heap-buffer-overflow issue
- nsvgParse : Parses SVG file from a null terminated string.
Change-Id: I09edc74929709e3f451bd308ebff88fe1729bd87
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
return;
}
+ remoteBuffer.PushBack( '\0' );
mParsedSvg = nsvgParse( reinterpret_cast<char*>(remoteBuffer.begin()), UNITS, mDpi );
}
}
Dali::Vector<char> buffer;
if ( Dali::FileLoader::ReadFile( mImageUrl.GetUrl(), buffer ) )
{
+ buffer.PushBack( '\0' );
mParsedImage = nsvgParse( buffer.Begin(), UNITS, meanDpi );
}
}