projects
/
xonotic
/
netradiant.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70a4ae5
)
q3map2/vis: do not read outside of script before detecting end of script
author
Thomas Debesse <dev@illwieckz.net>
Tue, 14 Jan 2020 09:34:48 +0000
(10:34 +0100)
committer
Thomas Debesse <dev@illwieckz.net>
Thu, 23 Jan 2020 18:21:39 +0000
(19:21 +0100)
tools/quake3/common/scriplib.c
patch
|
blob
|
history
diff --git
a/tools/quake3/common/scriplib.c
b/tools/quake3/common/scriplib.c
index 3c91386cb56f749631380fc611faf0f8d56b8901..e17124eb6506a59f077227bbd485e22c9100912d 100644
(file)
--- a/
tools/quake3/common/scriplib.c
+++ b/
tools/quake3/common/scriplib.c
@@
-199,7
+199,7
@@
qboolean GetToken( qboolean crossline ){
// skip space
//
skipspace:
- while ( *script->script_p <= 32 )
+ while (
script->script_p < script->end_p &&
*script->script_p <= 32 )
{
if ( script->script_p >= script->end_p ) {
return EndOfScript( crossline );