raze-gles/polymer/eduke32/build/src
helixhorned 3e4357c6a4 Integer Overflow Offensive continued: first round of -ftrapv - cleanness.
That is, "clang -ftrapv" builds don't abort almost immediately after entering
a level.

There are various classes of overflow bugs, needing different handling:
 - Some texture mapping code was written with signed integer wrapping semantics
   in mind.  In some places, we're able to get away with unsigned casts.
 - sometimes, we really need a wider range, like when calculating distances or
   dot products
 - negating INT_MIN.  Here, we cast to int64_t temporarily.  Note that if the
   result is 32-bit wide, no 64-bit code may actually need to be generated.
 - shifting into a signed integer's sign bit.  We cast to uint32 here.
 - in hitscan(), at the "abyss crash prevention code" comment, it's clearly
   the other code that is better...

This is not merely done for pedantry, but rather makes it easier to track down
overflow bugs having a real impact on the game.

git-svn-id: https://svn.eduke32.com/eduke32@2784 1a8010ca-5511-0410-912e-c29ae57300e0
2012-06-26 19:49:53 +00:00
..
misc Build tools: 2012-03-23 20:23:46 +00:00
tmp Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
util generateicon: fix inconsistent format letter vs. vararg in fprintf. 2012-04-08 15:52:24 +00:00
a-c.c Integer Overflow Offensive continued: first round of -ftrapv - cleanness. 2012-06-26 19:49:53 +00:00
a.masm Source code "cleanup," herein referred to as "rape" 2010-05-02 23:27:30 +00:00
a.nasm Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
a.wasm Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
baselayer.c Massive menu input control revamp/cleanup/factor. (added: input.[ch]) 2012-06-03 16:11:22 +00:00
build.c Relative-aligned non-flipped ceiling/floor texture alignment ([;]+[ENTER]) 2012-06-20 20:55:03 +00:00
cache1d.c Fix a single usage of S_IREAD instead of our BS_IREAD compatibility version 2012-06-21 19:48:54 +00:00
compat.c Patch adding Wii support by tueidj, part 8: system-specific changes 2012-05-01 12:40:08 +00:00
config.c On Windows, auto-determine r_screenaspect on startup. 2012-04-09 19:22:00 +00:00
crc32.c Rather trivial changes in engine.c and crc32.c. 2012-03-22 22:48:06 +00:00
defs.c The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor. 2012-06-03 16:09:33 +00:00
dynamicgtk.c Make the "Start" button of the GTK start-up window the default button of the window, which means pressing Enter now works at you'd expect. 2010-07-02 01:26:56 +00:00
engine.c Integer Overflow Offensive continued: first round of -ftrapv - cleanness. 2012-06-26 19:49:53 +00:00
engine_priv.h engine cleanup: make pow2char and pow2long const, make voxlock static. 2012-03-13 20:05:20 +00:00
glbuild.c Fix 'realloc' routine of GL texture name (id) debugging code. 2012-04-29 20:54:37 +00:00
gtkbits.c git-svn-id: https://svn.eduke32.com/eduke32@1206 1a8010ca-5511-0410-912e-c29ae57300e0 2009-01-10 07:38:50 +00:00
hightile.c Minor tweaks of makepalookup() and hicinit(). 2012-03-28 19:42:49 +00:00
kplib.c Patch adding Wii support by tueidj, part 10: sound and endianness changes 2012-05-01 12:40:53 +00:00
lzwnew.c Patch adding Wii support by tueidj, part 10: sound and endianness changes 2012-05-01 12:40:53 +00:00
md4.c Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
mdsprite.c mdsprite.c: patch up bad array access in loadkvx, remove const from kopen4load arg. 2012-05-29 20:01:40 +00:00
mutex.c Patch adding Wii support by tueidj, part 6: mutexes 2012-05-01 12:39:20 +00:00
nedmalloc.c fix some issues with compilation on mac osx; make B, N, M keys behave the same as KP1, KP2, KP3 when pointing at a polymer light (hack around keyboard strangeness) 2011-02-06 22:57:32 +00:00
osd.c Superficial text changes: 2012-03-26 05:05:57 +00:00
osxbits.m Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
polymer.c Fix a null pointer access in Polymer mouse picking. 2012-04-14 13:04:31 +00:00
polymost.c polymost.c: make polymost_checkcoordinates() static 2012-06-17 19:45:51 +00:00
pragmas.c Patch adding Wii support by tueidj, part 1: assembly pragmas 2012-05-01 12:37:32 +00:00
quicklz.c Update QuickLZ to 1.5.1 beta 7 2012-05-17 21:36:50 +00:00
rawinput.c Make 5th mouse button functional in Windows. 2012-02-13 21:38:16 +00:00
scriptfile.c a couple more trivial tweaks 2012-01-10 23:45:34 +00:00
sdlayer.c SDL layer: tweak high-resolution timers for profiling, add gethitickms(). 2012-06-22 21:39:57 +00:00
smalltextfont.c Moved build to a subdir underneath the eduke32 dir to avoid people trying to compile from the build src dir by mistake 2008-10-20 03:09:19 +00:00
startgtk.editor.c Patch from bioman to fix an issue with static linking GTK and to correct the alignment of the fullscreen checkbox in the startup window when building with POLYMER=0 2011-01-31 04:13:53 +00:00
StartupWinController.editor.m OS X: Fix more warnings. 2012-03-26 05:04:21 +00:00
startwin.editor.c Run engine source through new version of astyle, add printf() call to OSD_Printf() to facilitate console access through stdin/stdout for dedicated server mode, minor changes to sdlayer to allow operating without actually initializing SDL 2011-01-16 02:50:27 +00:00
textfont.c Run engine source through new version of astyle, add printf() call to OSD_Printf() to facilitate console access through stdin/stdout for dedicated server mode, minor changes to sdlayer to allow operating without actually initializing SDL 2011-01-16 02:50:27 +00:00
winlayer.c Correct an oversight and make handleevents() call our own window processing function instead of the default Windows one. 2012-05-20 05:36:32 +00:00