commit | 55baec0f4c535e24a060070592b8c51d75108481 | [log] [tgz] |
---|---|---|
author | Richard Henderson <richard.henderson@linaro.org> | Fri Jul 07 21:40:41 2023 +0100 |
committer | Richard Henderson <richard.henderson@linaro.org> | Sat Jul 15 08:02:32 2023 +0100 |
tree | 6a807cbafc3928642e00e1d0c5ea1faa0d23cb17 | |
parent | 0dd558121c41dd4578517a90668c24e7fcdd46ba [diff] |
linux-user: Widen target_mmap offset argument to off_t We build with _FILE_OFFSET_BITS=64, so off_t = off64_t = uint64_t. With an extra cast, this fixes emulation of mmap2, which could overflow the computation of the full value of offset. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230707204054.8792-14-richard.henderson@linaro.org>