[cfe-dev] Trouble cross-compiling llvm/clang
Anton Korobeynikov
anton at korobeynikov.info
Sat Jun 23 02:37:19 PDT 2012
> any hints?
Sounds like a bug. Does the following fix the problem for you:
Index: Errno.cpp
===================================================================
--- Errno.cpp (revision 157900)
+++ Errno.cpp (working copy)
@@ -52,7 +52,7 @@
# endif
#elif HAVE_DECL_STRERROR_S // "Windows Secure API"
if (errnum)
- strerror_s(buffer, errnum);
+ strerror_s(buffer, MaxErrStrLen-1, errnum);
#elif defined(HAVE_STRERROR)
// Copy the thread un-safe result of strerror into
// the buffer as fast as possible to minimize impact
?
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the cfe-dev
mailing list