This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Implement TmpDir() for Windows.
ClosedPublic

Authored by mpividori on Jan 20 2017, 5:57 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

mpividori created this revision.Jan 20 2017, 5:57 PM
amccarth added inline comments.
lib/Fuzzer/FuzzerIOWindows.cpp
291 ↗(On Diff #85226)

Consider using GetTempPath, which starts by looking at the TMP environment variable, but will also check for a temp directory setting in several other places.

https://msdn.microsoft.com/en-us/library/windows/desktop/aa364992(v=vs.85).aspx

mpividori updated this revision to Diff 86304.Jan 30 2017, 9:38 AM

@amccarth Thanks for your comment. Let me know if you agree with this new diff.

amccarth accepted this revision.Jan 30 2017, 9:41 AM

LGTM.

This revision is now accepted and ready to land.Jan 30 2017, 9:41 AM
This revision was automatically updated to reflect the committed changes.