Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for falsely diagnosed buffer overflow when EOF without newline is…

… reached
  • Loading branch information...
commit d9c4bfac16b98503e64285a3a6e850a89ace6d92 1 parent 6548cda
@foxtacles foxtacles authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/iniparser.c
View
2  src/iniparser.c
@@ -666,7 +666,7 @@ dictionary * iniparser_load(const char * ininame)
if (len==0)
continue;
/* Safety check against buffer overflows */
- if (line[len]!='\n') {
+ if (line[len]!='\n' && !feof(in)) {
fprintf(stderr,
"iniparser: input line too long in %s (%d)\n",
ininame,
Please sign in to comment.
Something went wrong with that request. Please try again.