tvg_saver TvgBinInterpreter: prevent misaligned memory access
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 22 Nov 2021 07:09:54 +0000 (16:09 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 25 Nov 2021 00:34:37 +0000 (09:34 +0900)
commit112ea64fabd321cf71f8d645f3e90d09ccd28cc8
treec7663144b5247ac9c51474fcfcc586eca7dc6f9d
parent15a6746baa3e18e9a77d2f5441008d5fda07b4a3
tvg_saver TvgBinInterpreter: prevent misaligned memory access

When parsing a binary stored as a char type,
interpreter can access the misaligned memory while accessing it with a pointer.
To prevent that, pass the array copied to memcpy as tvg Object.
src/loaders/tvg/tvgTvgBinInterpreter.cpp