Echelon9
62b9833bf0
Fix Coverity 1093638, 1093640 and 1093667: Out-of-bounds access in tcp_client.cpp
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10736 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-02 18:29:59 +10:00
Goober5000
8179453ffa
fix Mantis #2955 : crash when trying to join multiplayer server, caused by trying to memcpy an integer into a ushort (also add some sanity asserts)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10117 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:36 +10:00
niffiwan
93992f55ff
Coverity 1093668: Out-of-bounds access in fs2netd/tcp_client.cpp
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9970 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-27 13:51:49 +10:00
Goober5000
7f90f5c674
make MAX_MEDALS dynamic
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9799 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-20 19:27:03 +10:00
Goober5000
138e6b853f
yeesh... a veritable cascade of const-correctness
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9783 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-13 20:18:32 +10:00
Echelon9
6d4f266e52
Use SCP_* types to access STL types wherever possible. This allows more complete memory monitoring
2011-10-03 09:06:56 +00:00
Echelon9
80a027a400
PVS-Studio fix: V803 Decreased performance. In case 'tvs' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator.
...
For further discussion see, http://www.viva64.com/en/b/0093/
The scenarios where it will improve performance are under Debug builds. This improvement will however allow quicker use of other profiling tools that need to run on Debug builds.
Note. Code with size_t does not see the performance improvement comparison to iterators due to absence of array overrun check.
2011-08-28 08:31:25 +00:00
The_E
7f5c3d343e
Valathil's code cleanup patch.
2011-07-20 18:04:43 +00:00
Zacam
0050b48e80
Clears up the rest of the type conversion warnings listed in MSVC.
2010-10-25 03:26:03 +00:00
taylor
25987a680d
various FS2NetD fixes:
...
- increase sleep time during reconnect
- better handling of disconnects from connection errors
- proper disconnect in case of login failure
- log stats request calls
- don't try to read stats from packet when there aren't any to read
- allow proper connection resetting with standalone
- change auto-reconnect timeout from 30 minutes to 5
- count server traffic among activity instead of just client traffic
- reduce uneccessary client->server traffic
2010-08-03 08:22:02 +00:00
taylor
85920f2151
fix resetting of mission stats when reconnect of FS2NetD happens
2009-08-25 01:09:30 +00:00
taylor
737496d65c
bump buffer to allow for more tables (99 minimum) during validation
2009-07-22 02:21:24 +00:00
portej05
6a8d45c93d
Replace most instances of std::vector with SCP_vector. Memory is now all run through vm_malloc and vm_free.
...
Watch it go up AND down in mission.
2009-07-11 07:07:57 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
taylor
3abccfa76c
sync up to current FS2NetD code (fixes so many little problems/issues that it's not even funny)
2008-11-09 05:08:19 +00:00
taylor
beafe688bb
don't really need to bother with MAX_SERVERS any longer since it's ultimately dynamic
2008-10-06 05:51:20 +00:00
taylor
18b2922455
a fix/workaround for Mantis #1692
...
bunch of standalone fixage for error reporting and various little signon issues
fix heartbeats for standalone servers
make proper use of +pxo in multi.cfg for standalone so that games can show up in the lobby
client-side fix for getting pilot stats in lobby (Mantis #1652 )
2008-10-05 13:31:35 +00:00
taylor
6c255cf1c9
fix HB being sent after server disconnect (made games show up for up to 10 minutes after they had ended)
...
make the chat channel count update more than once, since that didn't appear to work very well
fix compile error with GCC 4.3
2008-07-10 05:10:31 +00:00
taylor
8103398fbf
some stats fixage
2008-05-03 04:44:22 +00:00
taylor
6aa46ca8d2
update to newest FS2NetD client code
2008-03-20 21:29:41 +00:00
taylor
c5235c6428
FS2NetD v.2 (still a work in progress, but is ~98% complete)
2007-10-15 06:43:23 +00:00