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:
5e3b67a
)
loader SvgLoader: return null if transform attribute invalid
author
JunsuChoi
<jsuya.choi@samsung.com>
Tue, 13 Apr 2021 09:30:04 +0000
(18:30 +0900)
committer
Hermet Park
<chuneon.park@samsung.com>
Wed, 14 Apr 2021 02:42:17 +0000
(11:42 +0900)
In transform matrix parsing, null is returned if any of the matrices are invalid.
src/loaders/svg/tvgSvgLoader.cpp
patch
|
blob
|
history
diff --git
a/src/loaders/svg/tvgSvgLoader.cpp
b/src/loaders/svg/tvgSvgLoader.cpp
index
acb6bba
..
2f6f5df
100644
(file)
--- a/
src/loaders/svg/tvgSvgLoader.cpp
+++ b/
src/loaders/svg/tvgSvgLoader.cpp
@@
-659,8
+659,10
@@
static Matrix* _parseTransformationMatrix(const char* value)
_matrixCompose(matrix, &tmp, matrix);
}
}
-error:
return matrix;
+error:
+ if (matrix) free(matrix);
+ return nullptr;
}