mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 18:23:42 +00:00
Fix #1626
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user