Commit Graph

38892 Commits (dcc2bbbd309d3c775d48b52cfa7fd2dbfa596448)

Author SHA1 Message Date
Nat Goodspeed dcc2bbbd30 DRTVWR-476: pthread_self() also needs CRYPTO_THREADID_set_pointer() 2018-10-28 22:30:42 -04:00
Nat Goodspeed 3766f35a2a DRTVWR-476: Eliminate std::mem_fun1() special case for Windows.
We used to have to use #if LL_WINDOWS logic to pass std::mem_fun1() to
llbind2nd() instead of std::mem_fun() elsewhere. VS 2017 no longer supports
std::mem_fun1(), which means we can eliminate the special case for Windows.
2018-10-25 11:26:39 -04:00
Nat Goodspeed 11788ba7a7 DRTVWR-476: Fix _open_osfhandle() param from long to intptr_t.
The Microsoft _open_osfhandle() opens a HANDLE to produce a C-style int file
descriptor suitable for passing to _fdopen(). We used to cast the HANDLEs
returned by GetStdHandle() to long to pass to _open_osfhandle(). Since HANDLE
is an alias for a pointer, this no longer works.

Fortunately _open_osfhandle() now accepts intptr_t, so we can change the
relevant GetStdHandle() calls. (But why not simply accept HANDLE in the first
place?)
2018-10-25 11:24:06 -04:00
Nat Goodspeed cacc164e7a DRTVWR-476: Fix glVertexAttrib{IPointer,PointerARB}() OpenGL calls.
VS 2017 complains about the same thing that clang does: casting S32 to GLvoid*
can't possibly produce a valid pointer value because S32 can't fit a whole
64-bit pointer. To appease it, not only must we use reinterpret_cast, but we
must first cast S32 to intptr_t and then reinterpret_cast THAT.
2018-10-25 11:17:21 -04:00
Nat Goodspeed 5c1e86dfdf DRTVWR-476: Explicitly cast 64-bit NaN constant to F32 as needed.
VS 2017 was complaining about truncating the value.
2018-10-25 11:11:22 -04:00
Nat Goodspeed fcfc123adb DRTVWR-476: Eliminate unnecessary typedefs from struct, enum decls.
With VS 2017, these produced fatal warnings.
2018-10-25 11:09:57 -04:00
Nat Goodspeed fba4b6ce76 DRTVWR-476: Remove throw(T) from operator new(), operator delete().
llcorehttp's test_allocator.{h,cpp} overrides global operator new(), operator
new[](), operator delete() and operator delete[](). The two operator new()
functions used to be declared with throw(std::bad_alloc). Worse, for VS 2013
and previous, we needed _THROW0() and _THROW1(std::bad_alloc) instead,
requiring #if logic.

But with dynamic throw declarations deprecated, we must actually remove those.
That obviates the THROW_BAD_ALLOC() / THROW_NOTHING() workarounds in
test_allocator.cpp.
2018-10-25 11:07:43 -04:00
Nat Goodspeed 1d11bc3c03 DRTVWR-476: Use OpenSSL API suitable for 64-bit pointers.
In three different places we use the same pattern: an ssl_thread_id_callback()
function (a static member of LLCrashLogger, in that case) that used to be
passed to CRYPTO_set_id_callback() and therefore returned an unsigned long
representing the ID of the current thread.

But GetCurrentThread() is a HANDLE, an alias for a pointer, and you can't
uniquely cram a 64-bit pointer into an unsigned long.

Fortunately OpenSSL has a more modern API for retrieving thread ID. Pass
each ssl_thread_id_callback() function to CRYPTO_THREADID_set_callback()
instead, converting it to accept CRYPTO_THREADID* and call
CRYPTO_THREADID_set_pointer() or CRYPTO_THREADID_set_numeric() as appropriate().
2018-10-25 10:58:12 -04:00
Nat Goodspeed 23fea97db1 DRTVWR-476: Eliminate snprintf_hack::snprintf(). Use MS snprintf().
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/snprintf-snprintf-snprintf-l-snwprintf-snwprintf-l?view=vs-2017
"Beginning with the UCRT in Visual Studio 2015 and Windows 10, snprintf is no
longer identical to _snprintf. The snprintf function behavior is now C99
standard compliant."

In other words, VS 2015 et ff. snprintf() now promises to nul-terminate the
buffer even in the overflow case, which is what snprintf_hack::snprintf() was
for.

This removal was motivated by ambiguous-call errors generated by VS 2017 for
library snprintf() vs. snprintf_hack::snprintf().
2018-10-24 16:26:05 -04:00
Nat Goodspeed 0cb4facf96 DRTVWR-476: Update Copy3rdPartyLibs.cmake for VS 2017 version.
Also, on Windows, put build output into
build-vc$AUTOBUILD_VSVER-$AUTOBUILD_ADDRSIZE instead of hard-coding
build-vc120-$AUTOBUILD_ADDRSIZE.
2018-10-22 14:58:23 -04:00
Nat Goodspeed 58aef8beaf increment viewer version to 5.1.10 2018-09-26 16:12:20 -04:00
Nat Goodspeed e213eafca9 Added tag 5.1.9-release for changeset 52422540bfe5 2018-09-26 16:12:19 -04:00
andreykproductengine 94eeef729e MAINT-9082 crash on HandleFocusLost 2018-09-04 20:19:48 +03:00
andreykproductengine c2f0d67ab2 Merged in MAINT-6291 2018-08-31 18:33:47 +03:00
Oz Linden 88e04ab2ab Restore the ability for sockets to specify the interface to listen on 2018-08-30 16:25:45 -04:00
Oz Linden f561b11fb8 disable RefCounted tests in llcorehttp because they hang the win64 build in TeamCity 2018-08-30 14:56:52 -04:00
andreykproductengine 28665ddb32 MAINT-6291 A bit more logging 2018-08-30 18:15:18 +03:00
Oz Linden f1d4e788e7 SL-967 simplify viewer log file field syntax
MAINT-8991: only escape log message characters once, add unit test
remove extra log line created by LL_ERRS
document that tags may not contain spaces
2018-08-29 16:43:45 -04:00
andreykproductengine b2b075a235 MAINT-6291 Fixed Scripted teleports have a higher rate of failure than user-initiated teleports.
Sim apparently sends finish and start messages simultaneously in case of
scripted or experience teleports
2018-08-29 20:30:07 +03:00
AndreyL ProductEngine 735b53d724 MAINT-9044 Update Aditi helper_uri to https://secondlife.aditi.lindenlab.com/helpers/ 2018-08-29 01:34:21 +03:00
AndreyL ProductEngine 236f986d35 Backed out changeset: 871c2923afce 2018-08-28 22:26:12 +03:00
AndreyL ProductEngine 36e89143b7 Backed out changeset: 5b0f20062633 2018-08-28 22:25:18 +03:00
maxim_productengine 46b6df1b48 line endings fix 2018-08-27 18:21:46 +03:00
andreykproductengine a1e6383b5f MAINT-8926 Don't allow overwritting default preset 2018-08-22 19:32:50 +03:00
maxim_productengine c24f638088 MAINT-8997 Add "Sort by recent arrival" to viewer People / Nearby map and list 2018-08-23 15:38:04 +03:00
maxim_productengine cdef4175d4 MAINT-8985 Added missed initialization 2018-08-23 14:53:46 +03:00
andreykproductengine c032bab9df MAINT-5651 LLTrace issues on exit 2018-08-21 20:30:24 +03:00
andreykproductengine ae1e9ca0a4 MAINT-8977 32bit viewer should have stricter image size cap 2018-08-20 16:43:54 +03:00
maxim_productengine 36594400a2 MAINT-8985 FIXED User is able to send friendship request to a friend from the group menu 2018-08-22 18:02:31 +03:00
AndreyL ProductEngine e041ffc5ff Merged in lindenlab/viewer-release 2018-08-22 03:02:59 +03:00
AndreyL ProductEngine 714e89d55a Merged in lindenlab/viewer-bear 2018-08-22 03:00:23 +03:00
Nat Goodspeed 6f54add8a8 increment viewer version to 5.1.9 2018-08-21 19:03:01 -04:00
Nat Goodspeed c1d5bafdb7 Added tag 5.1.8-release for changeset 23ea0fe36fad 2018-08-21 19:01:30 -04:00
AndreyL ProductEngine e3260d783a MAINT-9014 Updated Viewer Manager to 1.0.518840 2018-08-20 20:27:43 +03:00
AndreyL ProductEngine 3536353b1e Merged in lindenlab/viewer-bear 2018-08-20 18:50:44 +03:00
andreykproductengine 50453b47fe MAINT-5651 Froce-quit crash 2018-08-17 21:48:40 +03:00
maxim_productengine 7aaaabdea7 MAINT-8991 Escape newlines in log entries 2018-08-17 16:14:03 +03:00
AndreyL ProductEngine b588e4d845 MAINT-8868 Updated Viewer Maager to 1.0.518760 2018-08-16 22:34:11 +03:00
AndreyL ProductEngine 3ee8130bb0 Merged in lindenlab/viewer-bear 2018-08-16 01:06:14 +03:00
maxim_productengine 3ef47fc005 MAINT-8993 FIXED Crash in LLTeleportHistory::updateCurrentLocation(..) 2018-08-15 16:49:13 +03:00
andreykproductengine 9f16d10f6d MAINT-5651 Crashes on close from LLWindowWin32 2018-08-14 18:32:59 +03:00
Mnikolenko ProductEngine 961d7933f5 mac build fix 2018-08-15 13:45:47 +03:00
maxim_productengine 3920260458 MAINT-8930 FIXED Using "Reset all to recommended settings" still shows the last active preset as "Preset in use" in the UI 2018-08-14 14:05:55 +03:00
Nat Goodspeed f6735af931 Automated merge with ssh://bitbucket.org/nat_linden/viewer-no-popup 2018-08-11 09:02:16 -04:00
andreykproductengine 6bdbab2fd6 MAINT-8926 Don't allow overwritting default preset 2018-08-10 19:17:10 +03:00
Oz Linden 30b8068c97 VOICE-50 VOICE-58: recover from SLVoice process exit automatically 2018-08-10 09:51:48 -04:00
Nat Goodspeed 470e4b5afc Merge in anim_tool.py refactoring from server-side script. 2018-08-09 18:49:25 -04:00
andreykproductengine 1197da3cdf MAINT-8974 Reduce default settings for intel GPUs in case of failed benchmark 2018-08-09 15:57:48 +03:00
Nat Goodspeed 00839eb635 Add optional hostname param to LLSocket::create() for testing.
This allows the io.cpp test to listen only on the localhost loopback, avoiding
the macOS 10.13.6 "allow listening for incoming connections" popup while
running build-time tests that might halt an unattended TeamCity build.
2018-08-08 20:52:00 -04:00
Nat Goodspeed 6ae2f14244 Fix cmake -E copy of CrashReporter.nib.
indra/mac_crash_logger/CMakeLists.txt was using 'cmake -E copy_directory' to
copy CrashReporter.nib -- which is actually a binary file. Apparently that
works, until CMake 3.12.0, which produces an error. Use copy_if_different
instead.
2018-08-08 15:37:39 -04:00