This commit is contained in:
Max Lv
2017-08-12 22:39:45 +08:00
parent 32466ed51b
commit f8283fcc89
+4
View File
@@ -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.");
}