sw_engine SwShape: Prevent null access
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 15 Dec 2021 04:19:14 +0000 (20:19 -0800)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 15 Dec 2021 06:37:57 +0000 (22:37 -0800)
commitf4292f4a9918a5e2694079e30a03758e66f204b4
tree37d11b793d68ee739364d04e810f2af62edcd60d
parent5234c376e818c44060c722ddde77fa6a13628d65
sw_engine SwShape: Prevent null access

strokeOutline returned strokeExportOutline() is the address of mpool->strokeOutline[idx].
Assuming this value is null, mpoolRetStrokeOutline on line 617 will access mpool->strokeOutline[idx].
Logically, the logic of the mpool* functions does not occur in this case.
src/lib/sw_engine/tvgSwShape.cpp