[PATCH] D24332: [ESan] [MIPS] Fix workingset-signal-posix.cpp on MIPS

Sagar Thakur via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 02:10:16 PDT 2016


slthakur created this revision.
slthakur added a reviewer: bruening.
slthakur added subscribers: jaydeep, llvm-commits.
slthakur set the repository for this revision to rL LLVM.
slthakur added a project: Sanitizers.
Herald added a subscriber: kubabrecka.

- Used uptr for __sanitizer_kernel_sigset_t.sig to avoid byte order issues on big endian systems
- Corrected the data type of __sanitizer_kernel_sigaction_t.sa_flags which is unsigned int

Repository:
  rL LLVM

https://reviews.llvm.org/D24332

Files:
  lib/sanitizer_common/sanitizer_platform_limits_posix.h

Index: lib/sanitizer_common/sanitizer_platform_limits_posix.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform_limits_posix.h
+++ lib/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -607,7 +607,7 @@
   typedef __sanitizer_sigset_t __sanitizer_kernel_sigset_t;
 #elif defined(__mips__)
   struct __sanitizer_kernel_sigset_t {
-    u8 sig[16];
+    uptr sig[2];
   };
 #else
   struct __sanitizer_kernel_sigset_t {
@@ -618,7 +618,7 @@
   // Linux system headers define the 'sa_handler' and 'sa_sigaction' macros.
   struct __sanitizer_kernel_sigaction_t {
 #if SANITIZER_MIPS
-    unsigned long sa_flags;
+    unsigned int sa_flags;
 #endif
     union {
       void (*handler)(int signo);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24332.70661.patch
Type: text/x-patch
Size: 756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160908/d172f9c3/attachment.bin>


More information about the llvm-commits mailing list