Skip to content
Snippets Groups Projects
Commit 4b0d5b37 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Guard against pathologically bad OO][ sequences.

parent d7f97659
No related branches found
No related tags found
No related merge requests found
...@@ -303,7 +303,7 @@ static void getBlock(unsigned char **codeStr, char *menuBlock) ...@@ -303,7 +303,7 @@ static void getBlock(unsigned char **codeStr, char *menuBlock)
menuBlock[0]=0; menuBlock[0]=0;
if(**codeStr=='_') if(**codeStr=='_')
(*codeStr)++; (*codeStr)++;
while(**codeStr != '_' && **codeStr != '|') { while(**codeStr && **codeStr != '_' && **codeStr != '|') {
*(menuBlock++) = *((*codeStr)++); *(menuBlock++) = *((*codeStr)++);
*menuBlock=0; *menuBlock=0;
} }
...@@ -345,7 +345,7 @@ static int readSmallMenu(unsigned char *codeStr) { ...@@ -345,7 +345,7 @@ static int readSmallMenu(unsigned char *codeStr) {
int yy; int yy;
int zz; int zz;
unsigned char *origCodeStr=codeStr; unsigned char *origCodeStr=codeStr;
char buf[256]; char buf[260];
switch ((char)codeStr[0]) { switch ((char)codeStr[0]) {
case 'a': case 'a':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment