[sanitizer] Fix typo that breaks shmctl() interceptor.

https://code.google.com/p/address-sanitizer/issues/detail?id=259

llvm-svn: 200468
This commit is contained in:
Evgeniy Stepanov 2014-01-30 14:31:26 +00:00
parent bc286a4dbc
commit 3f6af151df
2 changed files with 7 additions and 1 deletions

View File

@ -15,4 +15,10 @@ int main() {
printf("shm_segsz: %zd\n", ds.shm_segsz);
assert(ds.shm_segsz == 4096);
assert(-1 != shmctl(id, IPC_RMID, 0));
struct shm_info shmInfo;
res = shmctl(0, SHM_INFO, (struct shmid_ds *)&shmInfo);
assert(res > -1);
return 0;
}

View File

@ -193,7 +193,7 @@ namespace __sanitizer {
int shmctl_ipc_stat = (int)IPC_STAT;
int shmctl_ipc_info = (int)IPC_INFO;
int shmctl_shm_info = (int)SHM_INFO;
int shmctl_shm_stat = (int)SHM_INFO;
int shmctl_shm_stat = (int)SHM_STAT;
#endif
int map_fixed = MAP_FIXED;