lilium-voyager/code/qcommon
/dev/humancontroller 1ce8ba0cdb Fix return values in nested system calls from QVMs
When the engine is compiled with Clang it appears that the return value
is being written to the WRONG address, either due to the vm_ variables being
changed (unexpectedly) elsewhere, or as a result of bad assembly assumptions;
having a stack variable pointing to where to write the return value seems
to do the trick.

This fixes the case where, for a trap_Register()-like call, weird numbers
are being returned when, during the process, an error message is printed
(which in Tremulous results in a QVM call and (nested) system call).
2015-03-23 20:17:07 -05:00
..
cm_load.c Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings 2011-07-29 12:27:00 +00:00
cm_local.h * Bug fix to collision optimisation (arQon) 2007-10-06 21:59:17 +00:00
cm_patch.c Fix OOB access in CM_EdgePlaneNum without erroring in CM_GridPlane 2014-05-25 23:03:42 -05:00
cm_patch.h * Added STATUS 2005-10-29 01:53:09 +00:00
cm_polylib.c Fix some of the things clang --analyze flagged 2013-03-26 16:50:03 +00:00
cm_polylib.h * Added STATUS 2005-10-29 01:53:09 +00:00
cm_public.h Remove references to non-existent functions CM_MarkFragments and CM_LerpTag. 2012-11-19 05:48:27 +00:00
cm_test.c * Bug fix to collision optimisation (arQon) 2007-10-06 21:59:17 +00:00
cm_trace.c Fix some of the things clang --analyze flagged 2013-03-26 16:50:03 +00:00
cmd.c Increase various arbitrary limits - Bug #5463 2013-01-06 01:36:39 -08:00
common.c Fix Com_RandomBytes weak-random case 2015-03-20 18:50:58 -05:00
cvar.c Merge pull request #22 from zturtleman/cvar_modified 2015-01-07 19:48:16 -06:00
files.c Fix FS_FOpenFileReadDir non-zero file handle when file not found in pk3 2014-03-18 20:49:52 -05:00
huffman.c Fix some of the things clang --analyze flagged 2013-03-26 16:50:03 +00:00
ioapi.c Just unix2dos, nothing to see here ... 2009-10-19 14:00:16 +00:00
ioapi.h Just unix2dos, nothing to see here ... 2009-10-19 14:00:16 +00:00
md4.c Fix a few warnings 2014-08-30 17:29:23 +01:00
md5.c fix a WRONG size argument to a memset() call found by Clang/LLVM 2012-06-19 14:53:40 +00:00
msg.c Fix a few warnings 2014-08-30 17:29:23 +01:00
net_chan.c Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings 2011-07-29 12:27:00 +00:00
net_ip.c Fix a few warnings 2014-08-30 17:29:23 +01:00
puff.c * PNG support from Joerg Dietrich <dietrich_joerg@t-online.de> 2007-08-23 17:23:15 +00:00
puff.h * PNG support from Joerg Dietrich <dietrich_joerg@t-online.de> 2007-08-23 17:23:15 +00:00
q_math.c Modular rendering system. Patch by use.less01 2011-08-01 01:19:55 +00:00
q_platform.h Ditch 'historical compatibility' and use 'logic' instead 2013-03-22 11:33:27 +00:00
q_shared.c Fix SkipRestOfLine going past end of string 2014-06-17 21:31:29 -05:00
q_shared.h Add facility to describe cvars 2014-09-26 14:29:51 +01:00
qcommon.h Add facility to describe cvars 2014-09-26 14:29:51 +01:00
qfiles.h #6069: Remove md4 model support. 2013-11-29 16:13:47 -08:00
surfaceflags.h * Added STATUS 2005-10-29 01:53:09 +00:00
unzip.c Fix some of the things clang --analyze flagged 2013-03-26 16:50:03 +00:00
unzip.h REFACTOR [a vs an] 2012-06-18 16:31:16 +00:00
vm.c Fix passing arg9 (qvm only), arg10, and arg11 to vmMain for native libs and non-i386 compiled or interpated qvms. (Currently they aren't use in vmMain in game, cgame, or ui.) 2012-12-15 21:55:07 +00:00
vm_interpreted.c Fix passing arg9 (qvm only), arg10, and arg11 to vmMain for native libs and non-i386 compiled or interpated qvms. (Currently they aren't use in vmMain in game, cgame, or ui.) 2012-12-15 21:55:07 +00:00
vm_local.h Fix passing arg9 (qvm only), arg10, and arg11 to vmMain for native libs and non-i386 compiled or interpated qvms. (Currently they aren't use in vmMain in game, cgame, or ui.) 2012-12-15 21:55:07 +00:00
vm_none.c revert int->long change as it breaks on 64bit. Actually only 2005-09-26 22:23:46 +00:00
vm_powerpc.c drop some useless return statements 2013-05-30 15:43:21 -05:00
vm_powerpc_asm.c REFACTOR [a vs an] 2012-06-18 16:31:16 +00:00
vm_powerpc_asm.h new PowerPC vm 2008-11-10 09:46:01 +00:00
vm_sparc.c fix some "\n"-related stuff 2013-05-30 15:32:44 -05:00
vm_sparc.h qcommon: vm: Add sparc JIT compiler. 2009-03-02 17:29:40 +00:00
vm_x86.c Fix return values in nested system calls from QVMs 2015-03-23 20:17:07 -05:00