This is an archive of the discontinued LLVM Phabricator instance.

sanitizer: fix crash with textdomain(NULL) interceptor
ClosedPublic

Authored by Lekensteyn on Apr 20 2017, 3:36 PM.

Details

Summary

The textdomain function accepts a NULL parameter (and should then return the
current message domain). Add a check for this and include ASAN tests.

Link: https://github.com/google/sanitizers/issues/787

Diff Detail

Event Timeline

Lekensteyn created this revision.Apr 20 2017, 3:36 PM
kcc accepted this revision.Apr 20 2017, 4:16 PM

LGTM, thanks!
Do you have commit access?

This revision is now accepted and ready to land.Apr 20 2017, 4:16 PM
In D32318#732863, @kcc wrote:

LGTM, thanks!
Do you have commit access?

Not yet (requested it earliet today), so please merge it for me (or we could just wait for Chris). Thanks!

kcc closed this revision.Apr 20 2017, 4:50 PM