commit | 2753cec4ee4e7dae8c94f7a24cdbaf2e99e3a854 | [log] [tgz] |
---|---|---|
author | Seung-Woo Kim <sw0312.kim@samsung.com> | Fri Oct 16 16:29:02 2020 +0900 |
committer | Marek Vasut <marex@denx.de> | Sun Jan 31 14:08:56 2021 +0100 |
tree | dbcb2d4133e28c92dad77a1ede1bfb73899f7310 | |
parent | abbe8c4459e3d2c40d17bc6c6dd178baf1639685 [diff] |
gadget: f_thor: fix wrong file size cast Casting 32bit int value directly into 64bit unsigned type causes wrong value for file size equal or larger than 2GB. Fix the wrong file size by casting uint32_t first. Fixes: commit 1fe9ae76b113 ("gadget: f_thor: update to support more than 4GB file as thor 5.0") Reported-by: Junghoon Kim <jhoon20.kim@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>