This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Fix close_fd_mask.
ClosedPublic

Authored by mpividori on Feb 4 2017, 2:14 PM.

Details

Summary

For Windows, sanitizers work with Handles, not with posix file descriptors, because they use the windows-specific API. So we need to convert the fds to handles before passing them to the sanitizer library.
After this change, close_fd_mask is fixed for Windows (this fix some tests too).

Diff Detail

Repository
rL LLVM

Event Timeline

mpividori created this revision.Feb 4 2017, 2:14 PM
mpividori updated this revision to Diff 87127.Feb 4 2017, 6:35 PM

@zturner You are right. Done.
Thanks.

mpividori updated this revision to Diff 87248.Feb 6 2017, 9:58 AM
zturner accepted this revision.Feb 6 2017, 10:06 AM
This revision is now accepted and ready to land.Feb 6 2017, 10:06 AM
This revision was automatically updated to reflect the committed changes.