strtoi/strtou converts string value to an intmax_t/uintmax_t integer.
Add a dedicated test.
Enable this API for NetBSD.
It's a reworked version of the original work by Yang Zheng.
Paths
| Differential D54702
Add interceptors for the strtoi(3)/strtou(3) from NetBSD ClosedPublic Authored by krytarowski on Nov 19 2018, 8:18 AM.
Details Summary strtoi/strtou converts string value to an intmax_t/uintmax_t integer. Add a dedicated test. Enable this API for NetBSD. It's a reworked version of the original work by Yang Zheng.
Diff Detail
Event Timeline
This revision now requires changes to proceed.Nov 29 2018, 1:59 PM This revision is now accepted and ready to land.Dec 7 2018, 1:20 PM
Closed by commit rL348663: Add interceptors for the strtoi(3)/strtou(3) from NetBSD (authored by kamil). · Explain WhyDec 7 2018, 2:27 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 177105 lib/sanitizer_common/sanitizer_common_interceptors.inc
lib/sanitizer_common/sanitizer_platform_interceptors.h
test/sanitizer_common/TestCases/NetBSD/strtoi.cc
|
There is INTERCEPTORS_STRTO_BASE in msan
Probably we should try to move them into common, and than add new interceptors.
If this is hard to move, then just add strtoi there