From: Heeyong Song Date: Thu, 4 Feb 2021 05:43:05 +0000 (+0900) Subject: [Tizen] Fix SVACE issue X-Git-Tag: accepted/tizen/6.5/unified/20211028.114057^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_6.5_unified;p=platform%2Fcore%2Fuifw%2Fdali-adaptor-legacy.git [Tizen] Fix SVACE issue Change-Id: If8c8f2c61248125dca481e308148bd5cc584bb6d --- 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