From <pwd.h>: user_from_uid, uid_from_user
From <grp.h>: group_from_gid, gid_from_group
Sponsored by <The NetBSD Foundation>
Paths
| Differential D42068
Add new interceptors for pwcache(3)-style functions ClosedPublic Authored by krytarowski on Jan 15 2018, 5:21 AM.
Details Summary From <pwd.h>: user_from_uid, uid_from_user From <grp.h>: group_from_gid, gid_from_group Sponsored by <The NetBSD Foundation>
Diff Detail
Event Timelinevitalybuka added inline comments.
This revision now requires changes to proceed.Jan 17 2018, 3:12 PM This revision is now accepted and ready to land.Jan 17 2018, 3:16 PM Comment Actions ideally we should have these tests in sanitizer_common and run by all sanitizers Closed by commit rL322829: Add new interceptors for pwcache(3)-style functions (authored by kamil). · Explain WhyJan 18 2018, 2:54 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 130383 compiler-rt/trunk/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/gid_from_group.cc
compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/group_from_gid.cc
|
why exit and not just return 1, return 0?