This is required to avoid msan false positives for code using this
function (although generally one should avoid using this function in
favor of wcrtomb).
The interceptor and test code have been based on wcrtomb, with obvious
modifications.
Differential D59548
[Sanitizer] Add interceptor for wctomb labath on Mar 19 2019, 8:36 AM. Authored by
Details This is required to avoid msan false positives for code using this The interceptor and test code have been based on wcrtomb, with obvious
Diff Detail
Event Timeline
Comment Actions
I'm very new to the sanitizer world, so I'm not sure I'm doing everything
Comment Actions you may add CHECK_LE(res, sizeof(local_dst))
yes, this will be better, without heap Comment Actions avoid heap allocations by using a stack buffer of fixed size which "should be enough for everyone". |