mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
* (bug #4282) Fix potential overlap of VM stack and bss sections (Patrick
Baggett)
This commit is contained in:
parent
5ffb45c79f
commit
cc8990495a
1 changed files with 2 additions and 1 deletions
|
@ -423,7 +423,8 @@ vmHeader_t *VM_LoadQVM( vm_t *vm, qboolean alloc ) {
|
||||||
|
|
||||||
// round up to next power of 2 so all data operations can
|
// round up to next power of 2 so all data operations can
|
||||||
// be mask protected
|
// be mask protected
|
||||||
dataLength = header.h->dataLength + header.h->litLength + header.h->bssLength;
|
dataLength = header.h->dataLength + header.h->litLength +
|
||||||
|
header.h->bssLength + STACK_SIZE;
|
||||||
for ( i = 0 ; dataLength > ( 1 << i ) ; i++ ) {
|
for ( i = 0 ; dataLength > ( 1 << i ) ; i++ ) {
|
||||||
}
|
}
|
||||||
dataLength = 1 << i;
|
dataLength = 1 << i;
|
||||||
|
|
Loading…
Reference in a new issue