Browse Source

Fix #1626

pull/1642/head
Max Lv 7 years ago
parent
commit
f8283fcc89
1 changed files with 4 additions and 0 deletions
  1. 4
      src/jconf.c

4
src/jconf.c

@ -163,6 +163,10 @@ read_jconf(const char *file)
long pos = ftell(f);
fseek(f, 0, SEEK_SET);
if (pos < 0) {
FATAL("Invalid config path.");
}
if (pos >= MAX_CONF_SIZE) {
FATAL("Too large config file.");
}

Loading…
Cancel
Save