- fix heap-buffer-overflow issue
- nsvgParse : Parses SVG file from a null terminated string
Change-Id: Ie462dd63b03ba212b5e67c89406fb477f83f0692
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Dali::Vector<char> buffer;
if ( Dali::FileLoader::ReadFile( mImageUrl.GetUrl(), buffer ) )
{
+ buffer.PushBack( '\0' );
mParsedImage = nsvgParse( buffer.Begin(), UNITS, meanDpi );
}
}