Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit e2163396 authored by Deucе's avatar Deucе 👌🏾

Guard against pathologically bad OO][ sequences.

parent bc6c3d4e
Pipeline #1642 passed with stage
in 9 minutes and 40 seconds
......@@ -303,7 +303,7 @@ static void getBlock(unsigned char **codeStr, char *menuBlock)
menuBlock[0]=0;
if(**codeStr=='_')
(*codeStr)++;
while(**codeStr != '_' && **codeStr != '|') {
while(**codeStr && **codeStr != '_' && **codeStr != '|') {
*(menuBlock++) = *((*codeStr)++);
*menuBlock=0;
}
......@@ -345,7 +345,7 @@ static int readSmallMenu(unsigned char *codeStr) {
int yy;
int zz;
unsigned char *origCodeStr=codeStr;
char buf[256];
char buf[260];
switch ((char)codeStr[0]) {
case 'a':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment