quakeforge/libs/gamecode
Bill Currie 78a0075be1 [gamecode] Plug a nasty buffer overflow
This one is ancient: the code was essentially unmodified since release
(just some formatting). Malformed vectors could sneak through due to map
bugs (eg, "angles -90" instead of "angle -90" as in ad_tears) and the
vector parsing code would continue past the end of the string and
writing into unowned memory, potentially messing up the libc allocation
records. Replacing with the obvious sscanf works nicely.

Sometimes, Quake code is brilliant. Other times, it's a real face-palm.
2022-05-21 14:28:47 +09:00
..
test [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
convert.py [gamecode] Add a fixme about using gcc's vec convert 2022-01-17 10:32:19 +09:00
hops.py [gamecode] Add tests for the hops instructions 2022-01-16 18:46:29 +09:00
Makemodule.am [gamecode] Clean up generated swizzle code 2022-04-01 02:14:05 +09:00
opcodes.py [gamecode] Add single-component float bitop instructions 2022-02-06 21:20:00 +09:00
pr_builtins.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
pr_debug.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
pr_edict.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
pr_exec.c [gamecode] Clean up progs data access 2022-04-29 16:59:15 +09:00
pr_load.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
pr_opcode.c [gamecode] Create macros for progs sizeof and alignof 2022-01-23 14:29:33 +09:00
pr_parse.c [gamecode] Plug a nasty buffer overflow 2022-05-21 14:28:47 +09:00
pr_resolve.c [gamecode] Use an explicit size for the null page 2022-02-01 16:43:29 +09:00
pr_resource.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
pr_strings.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
pr_v6p_opcode.c [cvar] Make cvars properly typed 2022-04-24 19:15:22 +09:00
pr_zone.c [gamecode] Conform with libc malloc for pr zone 2021-09-26 12:03:44 +09:00
swizzle.py [simd] Use portable swizzles 2022-03-31 02:25:33 +09:00