Cliff Gordon and Claude Opus 4.6
035ff3e111
Fix standalone web UI crash when polling player data before ship selection ( #7367 )
...
playerGet() indexed Ship_info with ship_class without bounds checking.
Before ship selection, ship_class is -1, which as an unsigned index
causes an out-of-bounds access. Add bounds check using ship_info_size(),
matching the pattern used elsewhere in the codebase. Also update the
Windows standalone GUI to use ship_info_size() for consistency.
Fixes #7366
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected] >
2026-04-10 12:41:45 -04:00
Goober5000
5f8e2c9475
fix the size parameter of snprintf and vsnprintf
...
These functions accept a size parameter that *includes* the null terminator, so tweak function calls accordingly.
2025-10-23 12:41:44 -04:00
Sébastien Noel
f149c36b44
Fix a few typos ( #5598 )
2023-10-24 20:33:45 -04:00
Goober5000
226e956fcc
dynamic events and goals
...
Make events and goals dynamic in missions and campaigns. When parsing, initialize all fields to their defaults.
2022-12-09 13:10:39 -05:00
Goober5000
8e2e825204
add UI_TIMESTAMP type and switch some timestamps to use it
2022-02-12 19:01:15 -05:00
JohnAFernandez
ba9205cd35
Make sure to pull from the bounds of the vector.
2021-02-05 23:40:24 -05:00
Taylor Richards
92be33ad9c
first pass at IPv6 support
2020-08-30 00:01:00 -04:00
m!m
bf4243c0b0
Merge pull request #2285 from asarium/docker/fixEventHandling
...
Fix standalone signal handling
2020-02-29 18:33:46 +01:00
asarium
582c144cf7
Fix standalone signal handling
...
The standalone did not initialize SDL and so did not receive the quit
signal when it was sent SIGTERM or SIGINT. This fixes that by making the
standalone server just use the normal os initialization code.
Also includes some other code cleanup and some more logging to make it
more apparent in the log what is currently happening at standalone
startup.
2020-02-29 17:09:55 +01:00
asarium
7029e4a10f
Add compile time option to enable logging in release builds
...
This mostly meant for special docker standalone server builds where it
might be useful to have full release performance but also have the logs
available if necessary. This now always compiles the log statements but
enables or disables them with a constexpr so they should not appear in
actual release binaries.
2020-02-24 18:54:55 +01:00
Taylor Richards
29ce72f66f
switch to using winsock2
...
also removes some obsolete win32 #ifdef's and
cleans up some windows #include's
2019-11-15 23:33:35 -05:00
Taylor Richards
bd9880bc9b
replace FS2NetD with PXO
2019-11-08 02:07:14 -05:00
asarium
fe0c6a629a
Do not allow failure for Windows Travis builds anymore
2019-08-22 17:36:28 +02:00
asarium
eeed22b91a
Enable misc-unused-parameters
...
clang-tidy was used for fixing the warnings. It is not clear if this is
actually an improvement so this may still be disabled later.
2018-04-25 11:57:55 +02:00
asarium
9b5710e8c3
Fix various issues detected by MinGW
...
This fixes various issues I found while trying to compile FSO in a cross
compilation setup using MinGW. This is a prerequisite for merging Tea-CI
support.
2018-04-21 15:13:25 +02:00
MageKing17
b1046b1c1c
Window title overhaul.
...
FSO now allows the window title to be specified via game_settings.tbl, some never-used function arguments were pruned at the same time, and fred.rc now receives version information (for the About dialogue and the title bar) from a cmake-generated header, so the version numbers get filled in properly. Speaking of FRED's About dialogue, it now displays the copyright symbol properly.
2017-11-17 02:51:36 -08:00
asarium
455ffd827a
Fix unresolved linking errors
2017-01-02 19:06:59 +01:00
Eshed
581e808733
Enable mingw builds (both 32&64 bit)
...
- Add libs prebuilt with mxe
- Update cmake scripts to use them
- Make MINGW builds use the generic def_files inclusion method
- Some minor fixes to compilation
2016-10-01 21:31:16 +03:00
asarium
a685642554
And another batch of 64-bit fixes
2016-08-12 09:42:55 +02:00
asarium
1bcd5400d3
Move build system to CMake
2016-07-22 12:07:19 +02:00
asarium
2d47bcd9ad
Replace Sleep with os_sleep
2015-06-03 16:20:39 +02:00
Goober5000
4f06fd2435
additional string safety
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11140 387891d4-d844-0410-90c0-e4c51a9137d3
2014-10-15 18:22:57 +10:00
karajorma
f4a7a117e4
Fix Mantis 2954 (Standalone can't find default language)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10112 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:35 +10:00
Goober5000
4bd10888ff
make localization more robust with additional checks on string length, more consting, and stronger typing and make XSTR const, since we don't want to modify the strings it translates and then CONST ALL THE THINGS
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9809 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:34 +10:00
Zacam
759b080814
pre-Antipodes Staging Merge: "Inferno" build options go away, INF_BUILD settings now "default" settings. Fixed and made consistent across all projects the Build Output names ("Debug" used for Debug builds at the very end of the file name before the extension and after other options such as SSE, where applicable) Other unused #defines or #ifdefs removed: DEMO build Related, STANDALONE_ONLY_BUILD (already covered by -standalone command line flag)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9549 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:46 +10:00
Echelon9
52b421c56b
Documentation: Remove redundant #includes
2012-04-22 13:36:31 +00: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
5dfb30dfce
PVS-Studio fix: V507 Pointer to local array 'title_str' is stored outside the scope of this array. Such a pointer will become invalid.
2011-10-01 06:54:43 +00:00
The_E
0525e871d0
PVS Studio related: Mark false alarms as such.
2011-08-30 17:46:49 +00:00
Echelon9
3453cc9c70
PVS-Studio fix: V576 Incorrect format. Consider checking the [third] actual argument of the 'sprintf' function. The SIGNED integer type argument is expected.
...
Fixes a number of this class of issue with sprintf formats.
2011-08-30 15:39:29 +00:00
Echelon9
a248a37d58
PVS-Studio: Fix V805. Decreased performance. It is inefficient to identify an empty string by using 'strlen(str) > 0' construct
2011-08-24 13:37:01 +00:00
Echelon9
f3359d1547
MSVC compiler doesn't like some of these SAFE_STRINGS changes, GCC does...
2010-12-20 06:14:08 +00:00
Echelon9
eb129200a1
Fix: Convert a further subset of strcpy() to the SAFE_STRINGS strcpy_s() version
2010-12-20 04:28:01 +00:00
Goober5000
434059b5a2
commit the revision patch originally inspired by Zacam
2009-12-05 22:53:04 +00:00
portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +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
chief1983
da0dbe84b3
Standalone GUI minimize from Taylor's 3610 patch
2009-01-03 02:37:45 +00:00
taylor
643a1aa230
standalone changes:
...
- add score/kill values to Player Info tab
- add multi.log out to the Debug tab
- add minimize-to-tray functionality
- fix messaging problem with property sheet handled messages
2008-11-11 01:09:01 +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
249b8496e3
fix some NaN that gave invalid values in the standalone UI
2008-10-23 04:39:54 +00:00
taylor
a4889e49e9
fix standalone crash when server name/password is too long in multi.cfg
2008-10-05 13:15:10 +00:00
taylor
c5235c6428
FS2NetD v.2 (still a work in progress, but is ~98% complete)
2007-10-15 06:43:23 +00:00
taylor
0850d30687
various bits of little cleanup
...
get rid of some more compiler warnings
2006-11-15 00:36:08 +00:00
taylor
e53cf0b18d
grrr ... fix dos EOL chars
2006-10-27 06:44:35 +00:00
taylor
f84784612e
give the standalone chat box a horizontal scroll capability, not terribly accurate but it's good enough for the purpose (Mantis bug #1095 )
2006-10-26 15:46:35 +00:00
Goober5000
7e41877b7b
proper capitalization according to Volition
2006-04-20 06:32:30 +00:00
Goober5000
64e86452d0
pare down the pragmas some more
...
--Goober5000
2006-01-26 03:23:30 +00:00
taylor
53d10eabf0
fix some automake errors with OSX 10.4's crappy AutoMake and a couple of other OS X related terminal compile fixage
2005-10-27 16:21:19 +00:00
taylor
d3481714d0
remove NO_NETWORK
2005-10-10 17:21:11 +00:00
Goober5000
2394e9801b
remove PreProcDefine #includes in FS2
...
--Goober5000
2005-07-13 03:35:36 +00:00