raze-gles/polymer/eduke32
helixhorned 4b44063853 Fix taking address out of bounds of stack'd array, introduced in r3983.
Clang's UBSan reports this as undefined behavior. I think that the reason
is as follows: C99 6.5.3.2#1 (Constraints) says:

 The operand of the unary & operator shall be either a function designator, the
 result of a [] or unary * operator, or an lvalue that designates an object that
 is not a bit-field and is not declared with the register storage-class specifier.

But in case of an expression like "&array[-1]", the operand ("array[-1]") does
not designate a valid object.

Moral: check first -- assure that an expression is valid for a particular
operation before carrying it out. Keep in mind that otherwise, the compiler
is absolutely free to optimize out the *check*.

git-svn-id: https://svn.eduke32.com/eduke32@4014 1a8010ca-5511-0410-912e-c29ae57300e0
2013-08-12 15:18:18 +00:00
..
build baselayer.c: remove baselayer_onvideomodechange, onvideomodechange. 2013-08-12 15:18:16 +00:00
jit Lunatic: add LuaJIT's jit/bcsave.lua and headers for synthesis build preparation. 2013-08-11 15:28:45 +00:00
package Polymer: Fix one-sided y-flipped floor-aligned sprites, introduced in r3776. 2013-06-11 20:03:39 +00:00
platform Lunatic: add LuaJIT's jit/bcsave.lua and headers for synthesis build preparation. 2013-08-11 15:28:45 +00:00
rsrc Support high DPI setups for the startup dialogs on Windows 2013-05-23 18:27:06 +00:00
source Fix taking address out of bounds of stack'd array, introduced in r3983. 2013-08-12 15:18:18 +00:00
eduke32.sln Source code "cleanup," herein referred to as "rape" 2010-05-02 23:27:30 +00:00
eduke32.vcxproj Dynamicsoundremap. 2013-06-01 06:55:30 +00:00
eduke32.vcxproj.filters Dynamicsoundremap. 2013-06-01 06:55:30 +00:00
Makefile Lunatic: prepare Makefiles for synthesis build. 2013-08-11 15:28:42 +00:00
Makefile.common Lunatic: prepare Makefiles for synthesis build. 2013-08-11 15:28:42 +00:00
Makefile.deps Dynamicsoundremap. 2013-06-01 06:55:30 +00:00
Makefile.msvc Dynamicsoundremap. 2013-06-01 06:55:30 +00:00