raze/polymer/eduke32/source
helixhorned efdd31d5a9 Guard retrieval of player index (.yvel) from APLAYER sprite.
It is unacceptable that yvel is on one hand modifiable without restriction from
scripting, but can be used as an array index without prior bound check in the C
code. Because that member has an overloaded meaning and is also used for
innocuous purposes such as the green color intensity of an SE light, it's
infeasible to restrict access from scripting. Consequently, we must add bound
checks on the C side. This is the first part of the effort to make .yvel safe,
adding two functions P_Get() and P_GetP(). There are a couple of other uses as
some kind of index.

git-svn-id: https://svn.eduke32.com/eduke32@4226 1a8010ca-5511-0410-912e-c29ae57300e0
2013-12-28 17:04:27 +00:00
..
enet Replace use of preprocessor macro WIN32 with _WIN32. (Blame clang.) 2013-06-01 06:57:00 +00:00
eobj Directory cleanup. Move the "Apple", "Windows", and "Wii" directories to a new "platform" dir, move the contents of "psd" to "rsrc/source", move eobj* and obj* directories so that they're under the "source" dir. 2013-03-04 04:14:19 +00:00
eobj_win Directory cleanup. Move the "Apple", "Windows", and "Wii" directories to a new "platform" dir, move the contents of "psd" to "rsrc/source", move eobj* and obj* directories so that they're under the "source" dir. 2013-03-04 04:14:19 +00:00
jaudiolib multivoc.c: use a local variable instead of a file-scope one used locally. 2013-11-28 21:18:09 +00:00
jmact Rewrite and unify the handling of the scrollwheel between layers, fixing it in the editor's 2D mode and tile selector under SDL. 2013-12-20 07:24:09 +00:00
lunatic Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
misc Update the info displayed in the "details" tab of the application properties dialog in Windows--change copyright date to 2013, update Duke Nukem trademark ownership from Apogee Software, Ltd to Gearbox Software, LLC 2013-08-31 04:57:46 +00:00
obj Directory cleanup. Move the "Apple", "Windows", and "Wii" directories to a new "platform" dir, move the contents of "psd" to "rsrc/source", move eobj* and obj* directories so that they're under the "source" dir. 2013-03-04 04:14:19 +00:00
obj_win Directory cleanup. Move the "Apple", "Windows", and "Wii" directories to a new "platform" dir, move the contents of "psd" to "rsrc/source", move eobj* and obj* directories so that they're under the "source" dir. 2013-03-04 04:14:19 +00:00
util
_functio.h
_midi.h
_rts.h
actors.c Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
actors.h Refactor projectiles a bit. Tested with all of the original weapons and with the weapons in the Duke 64 mod. 2013-08-06 23:53:34 +00:00
actors_inline.c Clean up of mostly actors.c, but some other files along the way too. 2013-04-15 10:48:09 +00:00
actors_inline.h
anim.c Add rudimentary sanity checks when playing ANM files. 2013-03-31 18:57:59 +00:00
anim.h
animvpx.c Take over and use static assertion macro found in LuaJIT sources. 2013-04-05 17:53:14 +00:00
animvpx.h
astub.c Rewrite and unify the handling of the scrollwheel between layers, fixing it in the editor's 2D mode and tile selector under SDL. 2013-12-20 07:24:09 +00:00
common.c Allow -g, -x, -h, -j, and for the game, -d, to take their file name after a space. This allows quotes to be used with them properly. 2013-11-03 04:02:23 +00:00
common_game.h Allow -g, -x, -h, -j, and for the game, -d, to take their file name after a space. This allows quotes to be used with them properly. 2013-11-03 04:02:23 +00:00
config.c Minor stylistic tweaks of code related to weapon switching. 2013-12-26 19:44:56 +00:00
config.h
demo.c Lunatic: don't allow starting demo recording, since gamevar diffing is NYI. 2013-12-24 09:44:21 +00:00
demo.h
duke3d.h Reserve 16 tiles from the end of MAXTILES, don't allow as user tiles from ART/DEF. 2013-12-28 17:04:22 +00:00
function.h
game.c Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
game.h Allow -g, -x, -h, -j, and for the game, -d, to take their file name after a space. This allows quotes to be used with them properly. 2013-11-03 04:02:23 +00:00
game_inline.c Add qstrdim and screentext, powerful new functions for HUD text. 2013-06-01 06:55:00 +00:00
game_inline.h Add qstrdim and screentext, powerful new functions for HUD text. 2013-06-01 06:55:00 +00:00
gamedef.c Minor stylistic tweaks of code related to weapon switching. 2013-12-26 19:44:56 +00:00
gamedef.h CON: add sprite pseudo-member 'isvalid', getting 1 if the sprite is valid. 2013-11-11 16:48:17 +00:00
gamedefs.h Remove some duplicate or unused control layer defines. 2013-02-25 15:31:22 +00:00
gameexec.c Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
gameexec.h Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
GameListSource.game.h Clean up some file and directory structure. 2012-12-29 10:54:35 +00:00
GameListSource.game.m Apply patch by forum user "John Jendro" fixing OS X build. 2013-07-13 21:05:06 +00:00
gamestructures.c Minor stylistic tweaks of code related to weapon switching. 2013-12-26 19:44:56 +00:00
gamevars.c Do not consider system gamearrays for updating from demos. 2013-12-06 18:56:39 +00:00
gamevars.h LunaCON: proper handling of dynamic remappings with weapon defaults. 2013-06-02 14:07:56 +00:00
global.c Add support for shareware 0.99/1.0/1.1, for shits and giggles. 2013-05-23 18:28:04 +00:00
global.h Rename 'camsprite' to 'g_curViewscreen', other related cleanup. 2013-12-26 19:45:12 +00:00
GNU.TXT
GrpFile.game.h Clean up some file and directory structure. 2012-12-29 10:54:35 +00:00
GrpFile.game.m Clean up some file and directory structure. 2012-12-29 10:54:35 +00:00
grpscan.c Add support for shareware 0.99/1.0/1.1, for shits and giggles. 2013-05-23 18:28:04 +00:00
grpscan.h Apply patch by forum user "John Jendro" fixing OS X build. 2013-07-13 21:05:06 +00:00
input.c Relax CAPITALIZATION restrictions. 2013-03-25 04:31:09 +00:00
input.h
keys.h
m32def.c m32script: fix parsing negated labels, getnumber* with neg. 'max'. 2013-12-11 21:23:47 +00:00
m32def.h Add "rotatespritea" to CON and M32script. 2013-03-25 04:33:03 +00:00
m32exec.c m32script: fix parsing negated labels, getnumber* with neg. 'max'. 2013-12-11 21:23:47 +00:00
m32structures.c Sanitize hard coded render mode numbers... replace all references to rendmode 0, 3, 4, etc with proper REND_CLASSIC, REND_POLYMOST, REND_POLYMER labels. 2013-05-17 03:44:09 +00:00
m32vars.c m32script: fix parsing negated labels, getnumber* with neg. 'max'. 2013-12-11 21:23:47 +00:00
macros.h Fix two bugs found by Clang's undefined behavior sanitizer. 2013-04-29 19:24:19 +00:00
mapster32.h
mdump.cpp
mdump.h
menus.c LunaCON: add a couple of userdefs members, fix tsprite's sectnum for writing. 2013-11-12 21:03:16 +00:00
menus.h
midi.c
midi.h
mpu401.c
mpu401.h
music.c
names.h
namesdyn.c Dynamicsoundremap. 2013-06-01 06:55:30 +00:00
namesdyn.h Lunatic translator: dynamic tile remapping. 2013-03-17 18:11:38 +00:00
net.c Fix the long-standing trivial warnings in net.c. 2013-10-07 10:03:23 +00:00
net.h Fix net.h, dunno why MSVC accepts functions that don't match their prototypes without complaining... :p 2013-08-07 14:29:10 +00:00
old.diff
osdcmds.c Lunatic: add 'lua' OSD command, permitting to execute arbitrary code. 2013-11-04 22:56:03 +00:00
osdcmds.h
osdfuncs.c OSD: factor out getting sh/pal using format+text buffers into OSD_GetShadePal(). 2013-11-04 22:56:08 +00:00
osdfuncs.h Cleanup of console/on-screen-display (OSD) functionality. 2012-12-25 16:13:50 +00:00
player.c Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
player.h Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
premap.c Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
premap.h Lunatic: various changes. 2013-07-04 19:38:46 +00:00
quotes.h Fix up handling of the Duke shareware beta a little bit, and change the dialog that pops up after running the shareware version too many times to take you to Steam instead of GOG (the Steam version is a better deal) 2013-06-13 21:17:03 +00:00
rev.h
rts.c Add newlines to some diagostic log messages that lack them and need them. 2013-04-13 03:49:35 +00:00
rts.h
savegame.c Rename 'camsprite' to 'g_curViewscreen', other related cleanup. 2013-12-26 19:45:12 +00:00
savegame.h LunaCON: very primitive gamevar handling logic for {save,load}mapstate. 2013-10-27 21:12:22 +00:00
sdlmusic.c sdlmusic.c: disable FORK_EXEC_MIDI. 2013-11-16 18:47:23 +00:00
sector.c Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
sector.h Don't consider W_FORCEFIELD+2 (surgery instruments) a forcefield picnum. 2013-12-26 19:45:15 +00:00
sector_inline.c
sector_inline.h
soundefs.h
sounds.c Guard retrieval of player index (.yvel) from APLAYER sprite. 2013-12-28 17:04:27 +00:00
sounds.h Replace literal g_sounds[].m bits with enum constants. DONT_BUILD. 2013-09-08 20:18:56 +00:00
sounds_common.h Replace literal g_sounds[].m bits with enum constants. DONT_BUILD. 2013-09-08 20:18:56 +00:00
sounds_mapster32.c Split the handling of audio based on RENDERTYPE into a new variable named MIXERTYPE, allowing Windows builds to use SDL for input and rendering (RENDERTYPE=SDL) while using DirectSound and Windows' MIDI interface (MIXERTYPE=WIN [current default]) so that EMIDI works. 2013-10-07 10:05:03 +00:00
sounds_mapster32.h Replace literal g_sounds[].m bits with enum constants. DONT_BUILD. 2013-09-08 20:18:56 +00:00
soundsdyn.c Dynamicsoundremap. 2013-06-01 06:55:30 +00:00
soundsdyn.h Dynamicsoundremap. 2013-06-01 06:55:30 +00:00
standard.h
startgtk.game.c Fix a reference to "RDR_POLYMER" that was missed in startgtk 2013-05-25 06:11:38 +00:00
startosx.game.m Clean up some file and directory structure. 2012-12-29 10:54:35 +00:00
startwin.game.c Windows startup window tweaks: 2013-10-07 10:05:41 +00:00
startwin.game.h
winbits.c