aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2024-07-30 09:02:05 +0200
committerGitHub <noreply@github.com>2024-07-30 09:02:05 +0200
commit1c25f2cd470c2882e422b66d0482f5a120960394 (patch)
tree77796251502c0491e74b1eb2f2376cfd35c8ead4 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
parent7cecbdfe4eac3fd7268532426fb6b13e51b8720d (diff)
downloadllvm-1c25f2cd470c2882e422b66d0482f5a120960394.zip
llvm-1c25f2cd470c2882e422b66d0482f5a120960394.tar.gz
llvm-1c25f2cd470c2882e422b66d0482f5a120960394.tar.bz2
[sanitizer_common][test] Fix InternalMmapWithOffset on 32-bit Linux/s… (#101011)
…parc64 ``` SanitizerCommon-Unit :: ./Sanitizer-sparc-Test/SanitizerCommon/InternalMmapWithOffset ``` `FAIL`s on 32-bit Linux/sparc64: ``` projects/compiler-rt/lib/sanitizer_common/tests/./Sanitizer-sparc-Test --gtest_filter=SanitizerCommon.InternalMmapWithOffset -- compiler-rt/lib/sanitizer_common/tests/sanitizer_libc_test.cpp:335: Failure Expected equality of these values: 'A' Which is: 'A' (65, 0x41) p[0] Which is: '\0' ``` It turns out the `pgoffset` arg to `mmap2` is passed incorrectly in this case, unlike the 64-bit test. The caller, `MapWritableFileToMemory`, passes an `u64` arg, while `mmap2` expects an `off_t`. This patch casts the arg accordingly. Tested on `sparc64-unknown-linux-gnu` and `x86_64-pc-linux-gnu`.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions