提交 f8db0f00 编写于 作者: N Nicolas D

Merge pull request #42 from xsquared/master

Prevent negative array index access when a line solely consists of newlines and spaces
......@@ -752,6 +752,10 @@ dictionary * iniparser_load(const char * ininame)
len-- ;
}
if (len < 0) { /* Line was entirely \n and/or spaces */
len = 0;
}
/* Detect multi-line */
if (line[len]=='\\') {
multi_line = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册