summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_common_syscalls.inc
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-29 02:48:49 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-29 02:48:49 +0000
commitf3603890015c130420def39d67a02c2fdafc6f84 (patch)
tree61101f89f370946c082997dc6f6fe83363955ee0 /lib/sanitizer_common/sanitizer_common_syscalls.inc
parent1767ec1c0d56bf9a4a5470ec5b28905e23892753 (diff)
[msan] Intercept shmat.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common_syscalls.inc')
-rw-r--r--lib/sanitizer_common/sanitizer_common_syscalls.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_common_syscalls.inc b/lib/sanitizer_common/sanitizer_common_syscalls.inc
index 942ffc4c9..0f500d639 100644
--- a/lib/sanitizer_common/sanitizer_common_syscalls.inc
+++ b/lib/sanitizer_common/sanitizer_common_syscalls.inc
@@ -2067,7 +2067,7 @@ PRE_SYSCALL(shmctl)(long shmid, long cmd, void *buf) {}
POST_SYSCALL(shmctl)(long res, long shmid, long cmd, void *buf) {
if (res >= 0) {
- if (buf) POST_WRITE(buf, struct_shmid_ds_sz);
+ if (buf) POST_WRITE(buf, sizeof(__sanitizer_shmid_ds));
}
}