10000 CS 10.61 release · ChatScript/ChatScript@e9e37f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit e9e37f8

Browse files
committed
CS 10.61 release
1 parent af00e9f commit e9e37f8

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

BINARIES/ChatScriptMysql.exe

0 Bytes
Binary file not shown.

BINARIES/ChatScriptmongo.exe

0 Bytes
Binary file not shown.

BINARIES/ChatScriptpg.exe

-512 Bytes
Binary file not shown.

BINARIES/LinuxChatScript64

-152 Bytes
Binary file not shown.

BINARIES/chatscript.dll

0 Bytes
Binary file not shown.

BINARIES/chatscript.exe

0 Bytes
Binary file not shown.

SRC/functionExecute.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -589,12 +589,12 @@ static char* SystemCall(char* buffer,char* ptr, CALLFRAME* frame,FunctionResult
589589
frame->arguments = callArgumentIndex - frame->varBaseIndex - 1;
590590

591591
// default up to 6 optional arguments and make them plausibly writable (but still would have bug if someone writes large data to them)
592-
callArgumentList[callArgumentIndex] = AllocateStack("", MAX_WORD_SIZE);
593-
callArgumentList[callArgumentIndex+1] = AllocateStack("", MAX_WORD_SIZE);
594-
callArgumentList[callArgumentIndex+2] = AllocateStack("", MAX_WORD_SIZE);
595-
callArgumentList[callArgumentIndex+3] = AllocateStack("", MAX_WORD_SIZE);
596-
callArgumentList[callArgumentIndex+4] = AllocateStack("", MAX_WORD_SIZE);
597-
callArgumentList[callArgumentIndex+5] = AllocateStack("", MAX_WORD_SIZE);
592+
callArgumentList[callArgumentIndex] = (char*) "";
593+
callArgumentList[callArgumentIndex+1] = (char*) "";
594+
callArgumentList[callArgumentIndex+2] = (char*) "";
595+
callArgumentList[callArgumentIndex+3] = (char*) "";
596+
callArgumentList[callArgumentIndex+4] = (char*) "";
597+
callArgumentList[callArgumentIndex+5] = (char*) "";
598598
if ((trace & (TRACE_OUTPUT|TRACE_USERFN) || D->internalBits & MACRO_TRACE) && !(D->internalBits & NOTRACE_FN) && CheckTopicTrace())
599599
{
600600
--globalDepth; // patch depth because call data should be outside of depth

SRC/mainSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "common.h"
22
#include "evserver.h"
3-
char* version = "10.6";
3+
char* version = "10.61";
44
char sourceInput[200];
55
FILE* userInitFile;
66
bool fastload = true;

SRC/os.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,12 @@ char* AllocateStack(char* word, size_t len,bool localvar,int align) // call with
420420
x &= 0xfffffffffffffff8;
421421
stackFree = (char*)x;
422422
}
423-
424-
if ((stackFree + len + 1) >= heapFree - 30000000) // dont get close
423+
unsigned int avail = heapFree - (stackFree + len + 1);
424+
if (avail < 3000000) // dont get close
425425
{
426426
int xx = 0;
427427
}
428-
if ((stackFree + len + 1) >= heapFree - 5000) // dont get close
428+
if (avail < 5000) // dont get close
429429
{
430430
ReportBug((char*)"Out of stack space stringSpace:%d ReleaseStackspace:%d \r\n",heapBase-heapFree,stackFree - stackStart);
431431
return NULL;

0 commit comments

Comments
 (0)
0