forked from OSchip/llvm-project
[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:
parent
bc286a4dbc
commit
3f6af151df
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue