From ba86df0204329c252f04c2148550f0a68109d0b8 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Thu, 4 Feb 2021 14:43:05 +0900 Subject: [PATCH] [Tizen] Fix SVACE issue Change-Id: If8c8f2c61248125dca481e308148bd5cc584bb6d --- dali/internal/imaging/common/loader-png.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dali/internal/imaging/common/loader-png.cpp b/dali/internal/imaging/common/loader-png.cpp index 4b51af3..55a3149 100755 --- a/dali/internal/imaging/common/loader-png.cpp +++ b/dali/internal/imaging/common/loader-png.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -308,6 +308,12 @@ bool LoadBitmapFromPng( const Dali::ImageLoader::Input& input, Dali::Devel::Pixe DALI_ASSERT_DEBUG(pixels); rows = reinterpret_cast< png_bytep* >( malloc(sizeof(png_bytep) * height) ); + if(!rows) + { + DALI_LOG_ERROR("malloc is failed\n"); + return false; + } + for(y=0; y