summaryrefslogtreecommitdiff
path: root/test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cc
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-05-10 17:31:06 +0000
committerKamil Rytarowski <n54@gmx.com>2018-05-10 17:31:06 +0000
commit26039149afebd2388fbc453ebc04d496ce126310 (patch)
treee28a59cc95d082e55c7f19f1b352b20adb99935a /test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cc
parent349b880d896d1502cf86e6bae8d374ddb3059cab (diff)
wrong usages of sem_open in the libFuzzer
Summary: Fixed two non-standard usages of sem_open in the libFuzzer library and one NetBSD-related modification with test script. - The return value to indicate error should be SEM_FAILED instead of (void *)-1 (please refer to "RETURN VALUE" section in this [[ http://pubs.opengroup.org/onlinepubs/9699919799/functions/sem_open.html | page ]]). Actually, SEM_FAILED != (void *)-1 holds in NetBSD. - The SharedMemoryRegion::SemName function should return name starting with slash. Because the behaviour of name which does not start with slash is unspecified as the [[ http://pubs.opengroup.org/onlinepubs/9699919799/functions/sem_open.html | "DESCRIPTION" section ]] specified: > If name does not begin with the <slash> character, the effect is implementation-defined. - The length of name is limited to 14 in NetBSD, it is suggested to reduce the length of equivalence server name in the test script. Patch by: Yang Zheng Reviewers: vitalybuka, krytarowski, kcc Reviewed By: kcc Subscribers: kcc, #sanitizers, llvm-commits, joerg Differential Revision: https://reviews.llvm.org/D46622 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cc')
0 files changed, 0 insertions, 0 deletions