projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4121edc
)
SvgLoaderCommon: Add initialization in SvgVector
author
JunsuChoi
<jsuya.choi@samsung.com>
Fri, 4 Sep 2020 04:53:36 +0000
(13:53 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Fri, 4 Sep 2020 07:04:56 +0000
(16:04 +0900)
A segfault occurs when calling clear() a list without push.
This patch prevents it.
Change-Id: Ifb238def28990c2ac9621affadf23803a5e01fb2
src/loaders/svg/tvgSvgLoaderCommon.h
patch
|
blob
|
history
diff --git
a/src/loaders/svg/tvgSvgLoaderCommon.h
b/src/loaders/svg/tvgSvgLoaderCommon.h
index
f579c59
..
eddc5a5
100644
(file)
--- a/
src/loaders/svg/tvgSvgLoaderCommon.h
+++ b/
src/loaders/svg/tvgSvgLoaderCommon.h
@@
-122,9
+122,9
@@
struct SvgStyleGradient;
template<class T>
struct SvgVector
{
- T* list;
- uint32_t cnt;
- uint32_t reserved;
+ T* list
= nullptr
;
+ uint32_t cnt
= 0
;
+ uint32_t reserved
= 0
;
void push(T element)
{