common paint: fix invalid memory access in unit test
authorHermet Park <chuneon.park@samsung.com>
Fri, 12 Nov 2021 07:37:10 +0000 (16:37 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 16 Nov 2021 08:37:47 +0000 (17:37 +0900)
commit4ea1e54c6c8c9bbd0b14ac3b452ba58c32680797
tree58fddec2d08e3964071a99e006c60c8769e48869
parent242ccefe37de670d9d8c5a5b29c29bd2cf739838
common paint: fix invalid memory access in unit test

casting the paint to shape is not allowed if the compositor target
is not shape, here it concretely checking the the type before casting....
src/lib/tvgPaint.cpp