commit | f0be00ea95dca7a49201906690ff59d198061b95 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sun Jul 30 16:44:04 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 14 17:55:53 2023 -0400 |
tree | 53774a876d57ec8557ca4c6afd9f4b8798fca186 | |
parent | 22e22a2f5d0aefc313902207010178b3f8810bc4 [diff] |
fs: fat: avoid multiplication overflow The product of two 32 bit integers is a 32 bit integer. Hence clustcount * bytesperclust may overflow on > 4 GiB devices. Change the type of clustcount. Fixes: cb8af8af5ba0 ("fs: fat: support write with non-zero offset") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>