Fix VD svace problem. 64/262964/8
authorseungho <sbsh.baek@samsung.com>
Tue, 24 Aug 2021 05:08:30 +0000 (14:08 +0900)
committerseungho <sbsh.baek@samsung.com>
Fri, 27 Aug 2021 05:14:23 +0000 (14:14 +0900)
commit87423c1c7c5a6d980b0534f075d022ef7f4dfd4e
tree451627486d5976f28cb6286935f92a986e4a0843
parent6f585409b0bfdb37162aaf8234255751e80c6e0e
Fix VD svace problem.

 - The return type of fread is size_t has been converted to ssize_t.
 - At the previous implementation, because fread always returns positive value,
   the case ssize_t can be negative exists only when the fseek returns non-zero value.
 - This patch changes ReadBinFile to return false if it read nothing from binary.

Change-Id: I0de843de4a1b87593b0fc1653a92d2a0d11360f7
Signed-off-by: seungho <sbsh.baek@samsung.com>
automated-tests/resources/coverageTest.gltf [new file with mode: 0644]
automated-tests/src/dali-toolkit/utc-Dali-Scene3dView.cpp
dali-toolkit/internal/controls/scene3d-view/gltf-loader.cpp