[compiler-rt] r243895 - [asan] Print VAs instead of RVAs for module offsets on Windows

Reid Kleckner rnk at google.com
Wed Aug 5 11:34:37 PDT 2015


On Wed, Aug 5, 2015 at 10:56 AM, Hans Wennborg <hans at chromium.org> wrote:

> On Wed, Aug 5, 2015 at 9:12 AM, Hans Wennborg <hans at chromium.org> wrote:
> > On Tue, Aug 4, 2015 at 12:35 AM, İsmail Dönmez <ismail at donmez.ws> wrote:
> >> Hi,
> >>
> >> On Mon, Aug 3, 2015 at 10:51 PM, Reid Kleckner <reid at kleckner.net>
> wrote:
> >>>  bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr
> *bytes_read,
> >>>                    error_t *error_p) {
> >>> -  UNIMPLEMENTED();
> >>> +  CHECK(fd != kInvalidFd);
> >>> +  bool success = ::ReadFile(fd, buff, buff_size, bytes_read, nullptr);
> >>> +  if (!success && error_p)
> >>> +    *error_p = GetLastError();
> >>> +  return success;
> >>>  }
> >>
> >> This seems to fail on VS2015:
> >>
> >> ..\projects\compiler-rt\lib\sanitizer_common\sanitizer_win.cc(496):
> >> error C2664: 'BOOL
> >> ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED)': cannot convert
> >> argument 4 from '__sanitizer::uptr *' to 'LPDWORD'
> >> ..\projects\compiler-rt\lib\sanitizer_common\sanitizer_win.cc(496):
> >> note: Types pointed to are unrelated; conversion requires
> >> reinterpret_cast, C-style cast or function-style cast
> >
> > It's failing here too:
> >
> >
> http://build.chromium.org/p/chromium.fyi/builders/ClangToTWin/builds/2235/steps/gclient%20runhooks/logs/stdio
>
> Checked in fix attempt in r244077. Reid, please take a look so I
> didn't mess anything up :-)


Thanks for the fix! None of the sanitizers work on win64, so this didn't
pop up on lab.llvm and I didn't test it locally.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150805/32594a8d/attachment.html>


More information about the llvm-commits mailing list