Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common Che...



details:   https://anonhg.NetBSD.org/src/rev/f40156c48530
branches:  trunk
changeset: 322919:f40156c48530
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed May 23 11:16:13 2018 +0000

description:
Cherry-pick upstream patch for internal_mmap() in GCC(.old) sanitizers

Fix internal_mmap() on 32-bit NetBSD platforms

There is need to use internal_syscall64() instead of internal_syscall_ptr().
The offset argument of type off_t is always 64-bit.

http://llvm.org/viewvc/llvm-project?view=revision&revision=333075

PR kern/53261 by Martin Husemann

diffstat:

 external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r dbfd2afb9655 -r f40156c48530 external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc
--- a/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc       Wed May 23 11:14:49 2018 +0000
+++ b/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc       Wed May 23 11:16:13 2018 +0000
@@ -103,7 +103,7 @@
 uptr internal_mmap(void *addr, uptr length, int prot, int flags,
                     int fd, u64 offset) {
 #if SANITIZER_NETBSD
-  return internal_syscall_ptr(SYSCALL(mmap), addr, length, prot, flags, fd,
+  return internal_syscall64(SYSCALL(mmap), addr, length, prot, flags, fd,
                              (long)0, offset);
 #elif SANITIZER_FREEBSD || SANITIZER_LINUX_USES_64BIT_SYSCALLS
   return internal_syscall(SYSCALL(mmap), (uptr)addr, length, prot, flags, fd,



Home | Main Index | Thread Index | Old Index